# `Fleet.Cron`
[🔗](https://github.com/kuku/fleet/blob/main/lib/fleet/cron.ex#L1)

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}
     ]}

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

Starts the Fleet.Cron scheduler.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
