Search
Setup for Free
CD
Cloudflare Developers
using environment variables in cron job
Original message was deleted
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,446
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
A
alex
•
3/7/24, 8:52 PM
oh nevermind you have to use this format of handler
A
alex
•
3/7/24, 8:52 PM
https://developers.cloudflare.com/workers/runtime-apis/handlers/scheduled/
Cloudflare Docs
Scheduled Handler · Cloudflare Workers docs
When a Worker is invoked via a Cron Trigger
, the scheduled
(
) handler handles the invocation
.
Original message was deleted
C
Chaika
•
3/7/24, 8:52 PM
It
's the same as any other handler
-
- on the env object
https://developers.cloudflare.com/workers/runtime-apis/handlers/scheduled/#methods
Cloudflare Docs
Scheduled Handler · Cloudflare Workers docs
When a Worker is invoked via a Cron Trigger
, the scheduled
(
) handler handles the invocation
.
A
alex
•
3/7/24, 8:52 PM
thanks
! i was using some weird other syntax
Similar Threads
Environment variables
CD
Cloudflare Developers / general-help
14mo ago
CRON job CPU limit
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Dynamic environment variables in Pages
CD
Cloudflare Developers / general-help
2y ago