# `Lightning.Workflows.Scheduler`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/lightning/workflows/scheduler.ex#L1)

The Scheduler is responsible for finding jobs that are ready to run based on
their cron schedule, and then running them.

# `enqueue_cronjobs`

Find and start any cronjobs that are scheduled to run for a given time
(defaults to the current time).

# `enqueue_cronjobs`

```elixir
@spec enqueue_cronjobs(DateTime.t()) :: :ok
```

---

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