tarearbol v1.0.2 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

Specs

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

Specs

create(
  name :: binary(),
  runner :: Tarearbol.Scheduler.runner(),
  schedule :: Tarearbol.Scheduler.schedule()
) :: t()

Produces a Tarearbol.Scheduler.Job by parameters given

Link to this section Callbacks

Specs

The implementation to be run on schedule