by mgkimsal · 2y ago · 0 comments
Just as an example, if you have 8 nodes or whatever, your cronjob is going to get updated when the first one is deployed, not the last. The other nodes may or may not support that cronjob until they get the update.
Going the other direction, if you have to roll back a single node for whatever reason, now you have conflicting cronjob versions.
I typically want those rollouts to be separate so that I can handle failures in the app deployment before I update the cronjob.
There are probably some benefits of using the Deno.cron syntax for some functions, and benefits of using a config file for others, but acting like the only other option is "put it in a completely seperate codebase" doesn't make any sense to me.