---
title: "Cloudflare Cron Triggers: run a Worker on a schedule"
url: https://daily.dev/posts/cloudflare-cron-triggers-run-a-worker-on-a-schedule-allyxbppi
source_url: https://flaviocopes.com/cloudflare-cron-triggers
type: article
source: "Flavio Copes"
published: 2026-06-28T06:47:44.929Z
updated: 2026-06-28T06:48:09.141Z
tags: ["serverless", "cloudflare"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare Cron Triggers: run a Worker on a schedule

**[Flavio Copes](https://daily.dev/sources/flaviocopes)** · 3 min read · 0 upvotes · 0 comments

## Summary

Cloudflare Cron Triggers let you run Workers on a schedule without managing a server or cron daemon. You define cron expressions in wrangler.jsonc under triggers.crons, then implement a scheduled handler instead of (or alongside) the usual fetch handler. The handler receives env bindings, so you can query D1 databases, write to storage, or send emails. Key gotchas include: schedules run in UTC, and long-running async work should be wrapped in ctx.waitUntil. Local testing is possible by running wrangler dev and hitting a special curl endpoint to trigger the handler immediately.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://flaviocopes.com/cloudflare-cron-triggers>

## Similar posts on daily.dev

- [Cloudflare Email Workers: run code when an email arrives](https://daily.dev/posts/cloudflare-email-workers-run-code-when-an-email-arrives-tif0shlsh) · Flavio Copes · 0 upvotes · 1 comments
- [Cloudflare Workers: your first serverless function](https://daily.dev/posts/cloudflare-workers-your-first-serverless-function-zkqoxjdgf) · Flavio Copes · 0 upvotes · 0 comments
- [Cloudflare Queues: run work in the background](https://daily.dev/posts/cloudflare-queues-run-work-in-the-background-ef1edelhz) · Flavio Copes · 0 upvotes · 0 comments

---

Tags: [#serverless](https://daily.dev/tags/serverless), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/cloudflare-cron-triggers-run-a-worker-on-a-schedule-allyxbppi)
