Skip to content

v0.48.0 — task scheduling

Choose a tag to compare

@tshafer tshafer released this 11 Jul 16:03
· 110 commits to main since this release

Declare recurring work with a fluent cadence, then let a single cron trigger drive it — Laravel's scheduler, edge-first.

  • schedule(job) — a task is a Job or a plain function. Cadences: everyMinuteeveryThirtyMinutes, hourly / hourlyAt, daily / dailyAt("13:30"), weekly / monthly, or any 5-field cron().
  • scheduler().runDue(now) runs everything due (to the minute); due() lists without running.
  • Built-in cron matcher*, lists (1,15), ranges (9-17), steps (*/5), and standard day-of-month/day-of-week semantics.
  • Wire it to Cloudflare Cron Triggers (scheduled() handler) or a Node setInterval — one trigger drives every task, no per-job crontab entries.

310 tests; type-checked doc examples. See docs/scheduling.md.