Cron Scheduling at Specific Time
I'm having a bit of trouble with testing crons that should execute at a specific time (in order to test things that should happen at a specific date in the future). The scheduledTime does not seem to match up with when the cron says the next execution should be.
(My use-case is a testing endpoint that can be used to call my cron at a certain time, but usually this would be something that runs every 5 minutes or so)
Example:
I also haven't used crons in quite a while, so it's entirely possible that I'm misunderstanding how this should work.
Thank you!
1 Reply
Of course immediately after I post - is it the case that scheduledTime is when
workerd
actually put the event up for scheduling (the time at which I call /__scheduled
)? And then I have to use some library to figure out when that next execution is?