cloudflare-cron-triggers
Cloudflare Cron Triggers enables you to schedule periodic execution of Cloudflare Workers using standard cron syntax. Configure triggers in wrangler.jsonc, implement a scheduled handler in your Worker code, and test locally before deployment—all times run in UTC.
Cloudflare Cron Triggers lets you schedule periodic Worker execution using cron expressions in wrangler configuration.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-25
Cloudflare Cron Triggers lets you schedule periodic Worker execution using cron expressions in wrangler configuration. Cloudflare Cron Triggers enables you to schedule periodic execution of Cloudflare Workers using standard cron syntax. Configure triggers in wrangler.jsonc, implement a scheduled handler in your Worker code, and test locally before deployment—all times run in UTC.
Use it when
- Cloudflare Cron Triggers uses standard Unix cron syntax: five fields representing minute, hour, day of month, month, and day of week (0–6.
- Cloudflare Cron Triggers may fail to execute if your scheduled handler is not properly exported, cron expressions contain syntax errors.
Verify before relying
Read SKILL.md below before installing (11 files). Open directory: indexed for reading, not audited.
Install
secondsky/claude-skills/cloudflare-cron-triggers · repository language: TypeScript
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I set up cron jobs in cloudflare workers?
Cloudflare Cron Triggers lets you schedule periodic Worker execution using standard cron syntax. Define your cron expressions in the `[env.*.triggers.crons]` section of wrangler.jsonc, then export a `scheduled` handler in your Worker code to process each trigger. All times run in UTC. Deploy with `wrangler deploy` and your scheduled tasks will execute automatically on the defined schedule.
What is the cron expression syntax for cloudflare?
Cloudflare Cron Triggers uses standard Unix cron syntax: five fields representing minute, hour, day of month, month, and day of week (0–6, where 0 is Sunday). For example, `0 9 * * 1` runs at 9:00 AM UTC every Monday. Cloudflare Cron Triggers supports wildcards (*), ranges (1-5), steps (*/15), and lists (1,3,5). Verify your expressions before deployment to ensure correct scheduling.
Why are my cron triggers not working?
Cloudflare Cron Triggers may fail to execute if your scheduled handler is not properly exported, cron expressions contain syntax errors, or propagation delays occur after deployment. Verify your handler signature matches `export default { scheduled(event) { ... } }`, test locally with `wrangler dev`, and check that all cron patterns are valid. Allow a few minutes for triggers to propagate after deployment.
How do I test cron handlers locally and validate timezone conversions?
Cloudflare Cron Triggers supports local testing via `wrangler dev`, which simulates scheduled events. Use the Wrangler CLI to trigger test executions and verify your handler logic. Since all Cloudflare Cron Triggers times run in UTC, convert your desired local time to UTC before configuring expressions. Log timestamps in your handler to confirm execution times match expectations.
Can I integrate cron triggers with bindings and error handling?
Yes, Cloudflare Cron Triggers handlers can access bindings like databases, KV stores, and Durable Objects through the context parameter. Implement try-catch blocks in your scheduled handler to manage errors gracefully. Return appropriate status codes and log failures for monitoring. Bindings are injected the same way as in HTTP handlers, enabling seamless integration with your Worker infrastructure.
What is the scheduled() handler in cloudflare workers?
Cloudflare Cron Triggers uses the `scheduled()` handler to define code that runs on your cron schedule. Export it as part of your default export: `export default { scheduled(event) { ... } }`. The handler receives a ScheduledEvent object containing the cron trigger metadata. This is where you implement your periodic task logic, whether sending notifications, cleaning up data, or syncing external systems.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Cloudflare Cron Triggers
Status: Production Ready ✅ Last Updated: 2025-11-25 Dependencies: cloudflare-worker-base (for Worker setup) Latest Versions: wrangler@4.50.0, @cloudflare/workers-types@4.20251125.0
Quick Start (5 Minutes)
1. Add Scheduled Handler to Your Worker
src/index.ts:
```typescript export default { async scheduled( controller: ScheduledController, env: Env, ctx: ExecutionContext ): Promise<void> { console.log('Cron job executed at:', new Date(controller.scheduledTime));
(truncated - see the full file via the links below)
File tree — 11 files
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/SKILL.md
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/references/common-patterns.md
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/references/cron-expressions-reference.md
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/references/integration-patterns.md
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/references/testing-guide.md
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/references/wrangler-config.md
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/templates/basic-scheduled.ts
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/templates/hono-with-scheduled.ts
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/templates/multiple-crons.ts
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/templates/scheduled-with-bindings.ts
plugins/cloudflare-cron-triggers/skills/cloudflare-cron-triggers/templates/wrangler-cron-config.jsonc
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Set up and configure cron triggers for scheduled Worker execution”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill equips you to build and deploy serverless functions directly on Cloudflare's global edge infrastructure using JavaScript or TypeScript. Execute compute workloads with minimal latency by leveraging Cloudflare's distributed network, ideal for APIs, middleware, and real-time request handling.
Wrangler is a tool designed to help you manage and work with web development tasks more effectively. This skill introduces you to Wrangler's fundamental features and explains how it fits into modern development workflows. Gain clarity on what makes Wrangler useful and when to apply it in your projects.
Wrangler is Cloudflare's command-line tool for building and deploying Workers across the edge platform. It handles local development, deployment, and management of Workers alongside bindings for KV storage, R2 buckets, D1 databases, Vectorize indexes, and Workers AI. The skill prioritizes current documentation over cached knowledge to ensure commands and config syntax stay accurate.
This skill guides you through building production edge APIs with Cloudflare Workers, KV storage for caching and state, and Durable Objects for real-time coordination. It covers request routing, CORS handling, geohash-based caching patterns, IP rate limiting, and wrangler configuration to deploy across environments.
This skill equips you to build and deploy applications on Cloudflare's edge network using Workers, a serverless platform supporting JavaScript, TypeScript, and WebAssembly. It covers environment bindings, storage services (KV for caching, D1 for SQL, R2 for objects), Durable Objects for stateful coordination, and Wrangler CLI for local development and deployment.
Connect to Cloudflare's edge infrastructure to build and deploy serverless applications using Workers, managed databases, object storage, and AI services. Configure KV namespaces, D1 SQLite databases, R2 buckets, and Durable Objects through a unified platform.
More skills cloudflare-expert (Apache-2.0) · cloudflare-workers-performance (MIT) · cloudflare-email-routing (MIT) · Feishu Cron Reminder (unlicensed) · r2-upload (MIT)