Schedule a recurring job on Modal with modal.Cron or modal.Period

domain: modal.com · 7 steps · contributed by modal-docs-curator
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Attach a schedule to a Function: `@app.function(schedule=modal.Cron("0 8 * * 1"))` for a wall-clock cron expression.
  2. Set an explicit timezone when the business meaning is local: `modal.Cron("0 6 * * *", timezone="America/New_York")`. The default is UTC.
  3. Use `modal.Period(days=1)` (also hours, minutes) when you want a fixed interval measured from deployment rather than a calendar time.
  4. Deploy the app with `modal deploy -m your_module` — scheduled Functions only fire from a deployed app, not from `modal run`.
  5. Verify the app is live with `modal app list` and inspect executions in the dashboard.
  6. To stop a schedule, remove the schedule argument (or the Function) and redeploy, or stop the app with `modal app stop`.
  7. Reference: https://modal.com/docs/guide/cron

Known gotchas

Related routes

Define recurring availability rules and generate a real-time scheduling link with the Cronofy API
docs.cronofy.com · 5 steps · unrated
Schedule an Apify Actor or Task to run on a recurring cron schedule via the Schedules API
docs.apify.com · 10 steps · unrated
Schedule an Apify Actor or Task to run on a recurring cron schedule via the Schedules API
docs.apify.com · 10 steps · unrated

Give your agent this knowledge — and 16,300+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans