Exqute v0.1.2 Exqute.Schedule.Parser View Source

Parses the Schedule

Link to this section Summary

Functions

Converts the keys for the given schedule

Parses the schedule as per the format (rufus-scheduler supported)

Default options for a scheduler.

Link to this section Functions

Converts the keys for the given schedule

Link to this function

get_schedule(schedule)

View Source
get_schedule(map()) :: {String.t(), String.t(), String.t(), map()}

Parses the schedule as per the format (rufus-scheduler supported):

%{
  cron:  "* * * * * * UTC",
  class:  "SomeWorkerClass",
  queue:  "high",
  args:  "/tmp/foo"
}
Link to this function

scheduler_defaults()

View Source
scheduler_defaults() :: map()

Default options for a scheduler.

iex> Exqute.Schedule.Parser.scheduler_defaults()
%{args: [], enabled: true, include_metadata: false, queue: "default"}