Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-multiple-cron-triggers-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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

  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/examples/multiple-cron-triggers