Lightweight recurring job scheduler for Fleet.
Evaluates cron expressions and interval expressions (@every 30s, @hourly, etc.)
and dispatches jobs to their respective queues.
Example Configuration in Fleet.Supervisor
{Fleet,
repo: MyApp.Repo,
cron: [
{"* * * * *", MyApp.Workers.MinuteWorker},
{"@every 30s", MyApp.Workers.Heartbeat, args: %{"scope" => "all"}},
{"@hourly", MyApp.Workers.CleanupWorker, queue: :maintenance}
]}
Summary
Functions
Returns a specification to start this module under a supervisor.
Starts the Fleet.Cron scheduler.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Starts the Fleet.Cron scheduler.