#Crons are running on the 54th second of the minute instead of the start?

12 messages · Page 1 of 1 (latest)

karmic breach
#

Anyone know why my "every minute" cron is running on this weird timeframe? Shouldn't it on the minute and not 54 seconds into the minute?

mortal whale
karmic breach
#

interesting. thats super odd. thanks for the clarity

tall coyote
karmic breach
mortal whale
# karmic breach What I do is run a cron, and insert everything into queues. But having it run at...

Might be a better fit for Durable Object Alarms then? https://developers.cloudflare.com/durable-objects/api/alarms/

Cloudflare Docs

Durable Objects alarms allow you to schedule the Durable Object to be woken up at a time in the future. When the alarm's scheduled time comes, the alarm() handler method will be called. Alarms are modified using the Storage API, and alarm operations follow the same rules as other storage operations.

karmic breach
#

I guess so. But every other cron works by running on the minute. So I just assumed cloudflare was the same

#

@mortal whale are there issues with 10, 100s of thousands of alarms? How are alarms diff from queues in this particular case

mortal whale
#

I guess Queues could work too, in the sense that the Queue Consumer could put a new message onto the Queue for the next run?

#

I guess it depends on what makes the best sense for your architecture

karmic breach
#

understood, thanks!