Drizzle (drizzle v0.1.0)
Copy MarkdownA server for second-granularity execution of jobs from a cron tab
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1.
Update the crontab during runtime.
Types
@type t() :: %Drizzle{ evaluation_time_fun: (integer() -> any()), last_evaluation: integer(), records: [Drizzle.Record.t()] }
The main struct for the Drizzle GenServer, managing job execution state.
Fields
:records– A list ofDrizzle.Recordstructs, each defining a job to be executed according to its cron schedule.:last_evaluation– The timestamp (in seconds) of the last evaluation cycle. Used to catch up on time spent offline.:evaluation_time_fun– A function called after each execution and every 30s, used to perst the evaluation timestamp. Accepts the current timestamp (in seconds) as an argument.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Callback implementation for GenServer.init/1.
@spec update([Drizzle.Record.t()]) :: :ok
Update the crontab during runtime.