Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-miniflare-scheduled-events-workflow-guide.mdA 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-.textA 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.textA 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.textCurl 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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