patterns.md

Created about 12 hours ago

attributes
source_pathreferences/cron-triggers/patterns.md
source_sha2565dca8dae0b8c35c142e1eb6e39816968d41f52bcdb81bcc3c114d3b94bef4c00
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/cron-triggers/patterns.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Cron Triggers Patterns

Choose the execution boundary before writing a scheduled job; fetch the relevant integration docs for implementation.

Need Documentation
Periodic API sync, cleanup, reports, or health checks in a Worker Cron Triggers background and scheduled handler
Different jobs on different schedules Handle multiple cron triggers
Durable multi-step work started on a schedule Trigger Workflows
Send work to a queue and implement its consumer Queues JavaScript APIs
Coordinate state across invocations What are Durable Objects?
Inspect whether scheduled work ran View past events

Keep the trigger separate from the business operation so manual recovery and scheduled execution can share it. Decide how partial progress is recorded, how repeated attempts affect side effects, and who owns completion reporting. When distributing a batch, distinguish successful enqueueing from successful processing.

Use Workers limits to evaluate whether the job fits one invocation. If it needs durable steps, waiting, or explicit retry boundaries, inspect Workflows before building those mechanisms in the handler.

See api.md for tests and gotchas.md for operational checks.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.