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:
event.cron: 2 17 12 11 *
event.scheduledTime: 2023-11-06T21:02:11.514Z
event.cron: 2 17 12 11 *
event.scheduledTime: 2023-11-06T21:02:11.514Z
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!
No description
1 Reply
Cat
Cat7mo ago
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?