tarearbol v0.13.0 Tarearbol.Scheduler.Job behaviour View Source

A struct holding the job description. Used internally by Tarearbol.Scheduler to preserve a list of scheduled jobs.

Link to this section Summary

Types

t()

The struct containing the information about the job

Callbacks

The implementation to be run on schedule

Link to this section Types

Link to this type

t()

View Source
t() :: %Tarearbol.Scheduler.Job{
  module: term(),
  name: term(),
  runner: term(),
  schedule: term()
}

The struct containing the information about the job

Link to this section Functions

Link to this function

create(name, runner, schedule)

View Source
create(
  name :: binary(),
  runner :: Tarearbol.DynamicManager.runner(),
  schedule :: binary()
) :: t()

Produces a Tarearbol.Scheduler.Job by parameters given

Link to this section Callbacks

The implementation to be run on schedule