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
Add a check for the .cron property on the first argument to the scheduled event in your code
Is there any other way to add this function using cloudflare workers function.
?
There isn't a way to lock down the times for your worker. The check needs to be added to the code