cloudflare · Cloudflare Workers Docs
Workers Scheduled Events
Teaches how to simulate and trigger scheduled cron events in Miniflare using HTTP requests, query parameters, and the getWorker function.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Scheduled Events
Teaches how to simulate and trigger scheduled cron events in Miniflare using HTTP requests, query parameters, and the getWorker function.
When To Use
Use when you need to manually trigger or simulate cron-based scheduled events in a local Miniflare testing environment using HTTP requests or the getWorker API.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-testing-miniflare-scheduled-events-workflow-guide.md | A guide explaining how to test and dispatch scheduled events using Miniflare via cron triggers and HTTP requests. | Questions about a guide explaining how to test and dispatch scheduled events using Miniflare via cron triggers and HTTP requests. |
examples/workers-testing-miniflare-scheduled-events-cloudflare-workers-miniflare-.text | A Miniflare configuration example demonstrating how to set up cron triggers for testing scheduled events in Cloudflare Workers. | Exact payloads, commands, or snippets shown in A Miniflare configuration example demonstrating how to set up cron triggers for testing scheduled events in Cloudflar... |
examples/workers-testing-miniflare-scheduled-events-cloudflare-workers-miniflare--2.text | A curl command used to trigger a scheduled event in a local Miniflare environment. | Exact payloads, commands, or snippets shown in A curl command used to trigger a scheduled event in a local Miniflare environment. |
examples/workers-testing-miniflare-scheduled-events-cloudflare-workers-miniflare--3.text | Curl commands used to trigger scheduled events in Miniflare using specific timestamps and cron expressions. | Exact payloads, commands, or snippets shown in Curl commands used to trigger scheduled events in Miniflare using specific timestamps and cron expressions. |
examples/workers-testing-miniflare-scheduled-events-cloudflare-workers-miniflare--4.text | A Node.js code example demonstrating how to use Miniflare to test and trigger Cloudflare Workers scheduled events. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use Miniflare to test and trigger Cloudflare Workers scheduled events. |
What This Skill Covers
- scheduled events are automatically dispatched according to the specified cron triggers:
- Main sections:
Cron Triggers,HTTP Triggers,Dispatching Events.
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/testing/miniflare/core/scheduled
