cloudflare · Cloudflare Workers Docs
Workers Multiple Cron Triggers
Demonstrates how to configure a Cloudflare Worker to execute on multiple distinct schedules and how to simulate these triggers locally using the Wrangler CLI.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Multiple Cron Triggers
Demonstrates how to configure a Cloudflare Worker to execute on multiple distinct schedules and how to simulate these triggers locally using the Wrangler CLI.
When To Use
Use when you need to configure a single Worker to run on different cron schedules or when you need to test scheduled events locally using Wrangler.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-multiple-cron-triggers-workflow-guide.md | A markdown guide demonstrating how to configure and test multiple cron trigger schedules for Cloudflare Workers using Wrangler. | Questions about a markdown guide demonstrating how to configure and test multiple cron trigger schedules for Cloudflare Workers using... |
examples/workers-examples-multiple-cron-triggers-cloudflare-workers-multiple-cron.text | A JavaScript example demonstrating how to handle multiple scheduled cron triggers within a single Cloudflare Worker using a switch statement on the event cron property. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to handle multiple scheduled cron triggers within a single Cloudflare Worker u... |
examples/workers-examples-multiple-cron-triggers-cloudflare-workers-multiple-cron-2.text | A JavaScript example demonstrating how to use a switch statement within a scheduled handler to execute different logic based on multiple cron trigger patterns. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use a switch statement within a scheduled handler to execute different logi... |
examples/workers-examples-multiple-cron-triggers-cloudflare-workers-hono-multiple.text | A JavaScript example using the Hono framework to implement a Cloudflare Worker that handles both HTTP fetch requests and multiple scheduled cron triggers. | Exact payloads, commands, or snippets shown in A JavaScript example using the Hono framework to implement a Cloudflare Worker that handles both HTTP fetch requests... |
examples/workers-examples-multiple-cron-triggers-cloudflare-workers-multiple-cron-3.text | A Python implementation of a Cloudflare Worker configured to handle multiple scheduled cron trigger events. | Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker configured to handle multiple scheduled cron trigger events. |
What This Skill Covers
- Set multiple Cron Triggers on three different schedules.
- Main sections:
Tags,Test Cron Triggers using Wrangler.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/examples/multiple-cron-triggers
