Scheduled worker does not fire


I deployed a worker that runs every minute crons = [ "* * * * *" ]. It never runs, I waited for an hour, zero triggers.

export default {
  async scheduled(
    controller: ScheduledController,
    env: Env,
    ctx: ExecutionContext
  ): Promise<void> {
    console.log(`Hello World!`);

Any ideas why?

So it kicked in after an hour. Its definitely should not take that long. Also, any updates I make to the source code and then publish, it does not reflect. For example, if I change the console log message and then push, and then tail the logs, it would display the older message. It takes around 20 minutes to reflect the changes

The ~20 minute delay for changes to cron workers is known and expected at this time. I do hope we’ll see this improve in the future.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.