Can we catch up missed CRON jobs on gateway startup ?

Hey! Quick question about cron jobs

I don't run my gateway 24/7 (sometimes my laptop is OFF), and I have some weekly crons (like a important Sunday 6pm job). If my Mac is off at that time and I boot it Monday morning, the cron just gets skipped entirely

Is there a way to "catch up" missed cron runs on startup? Like an option to run jobs that should have fired while the gateway was down?

I couldn't find anything in the docs, so I went ahead and implemented a catchUp flag myself on critical crons (it checks on gateway startup if any scheduled occurrence was missed and runs the job immediately) Happy to open a PR if that's useful, but maybe i missed smth

I know there is probably a workaround using heartbeats (checking for missed jobs on each heartbeat), but that didn't felt right

Also, I imagine this kind of feature could be put in a plugin if it's no interest

Is there already a better way to handle this that I missed?
Was this page helpful?