I did a little playing around with Workers Cron today, here’s a few things that came up:
- Console.log doesn’t get streamed to wrangler tail, which would be very helpful for developing and debugging a cron.
- It seems like adding a cron doesn’t take effect immediately, but takes 3-5 minutes to enable? Without a console.log and with a delay, it can make iterating on a worker in progress a bit challenging.
- It would be nice to be able to define/update the cron in the wrangler.toml
Other than those 3 things, everything worked pretty flawlessly.
Because of the lack of console.log in a cron worker, I suggest building all the logic in a regular worker and then migrate it to a cron after it works.