How to add time safety function for recurring function?

You have to make a Cron trigger in such a way that it only runs at 3:00 AM in morning, if some one accidently changes the time from wranglet.toml no trigger will be executed
3 Replies
kian
kian2y ago
Add a check for the .cron property on the first argument to the scheduled event in your code
Discor
Discor2y ago
Is there any other way to add this function using cloudflare workers function. ?
Cyb3r-Jak3
Cyb3r-Jak32y ago
There isn't a way to lock down the times for your worker. The check needs to be added to the code
Want results from more Discord servers?
Add your server