Complete knowledge domain for Cloudflare Cron Triggers - scheduled execution of Workers using cron expressions for periodic tasks, maintenance jobs, and automated workflows. Use when: scheduling Workers to run periodically, adding cron triggers to Workers, configuring scheduled tasks, testing cron handlers, combining crons with Workflows, enabling Green Compute, handling multiple schedules, or encountering "scheduled handler not found", "cron expression invalid", "changes not propagating", "handler does not export", "timezone issues" errors. Keywords: cloudflare cron, cron triggers, scheduled workers, scheduled handler, periodic tasks, background jobs, scheduled tasks, cron expression, wrangler crons, scheduled event, green compute, workflow triggers, maintenance tasks, scheduled() handler, ScheduledController, UTC timezone
Status: Production Ready ✅ Last Updated: 2025-10-23 Token Savings: ~60% (vs. manual implementation) Errors Prevented: 6 documented issues
This skill automatically activates when Claude detects:
Complete knowledge domain for Cloudflare Cron Triggers - scheduling Workers to execute periodically using cron expressions.
Scheduled Handler Setup
Cron Expression Syntax
Configuration
Testing
--test-scheduled/__scheduled endpointIntegration Patterns
UTC Timezone Handling
| Issue | Error Message | Prevention |
|-------|---------------|------------|
| Propagation Delay | Changes not taking effect | Document 15-minute wait time |
| Wrong Handler Name | "Handler does not export" | Enforce exact scheduled name |
| UTC Confusion | Cron runs at wrong time | Timezone conversion guide |
| Invalid Syntax | Cron doesn't execute | Validation with Crontab Guru |
| Service Worker Format | "Must use ES modules" | ES modules examples |
| CPU Limits | "CPU time exceeded" | Limits configuration guide |
// src/index.ts
export default {
async scheduled(
controller: ScheduledController,
env: Env,
ctx: ExecutionContext
): Promise<void> {
console.log('Cron executed:', controller.cron);
await performScheduledTask(env);
},
};
// wrangler.jsonc
{
"triggers": {
"crons": ["0 * * * *"] // Every hour
}
}
# Test locally
npx wrangler dev --test-scheduled
curl "http://localhost:8787/__scheduled?cron=0+*+*+*+*"
Use this skill when:
Without this skill:
With this skill:
License: MIT Maintainer: Jeremy Dawes | jeremy@jezweb.net
npx skills add jackspace/Cloudflare Cron 触发器下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer