Replies: 1 comment
-
There is currently no way to control croner "globally", but each scheduled job can be controlled using import { Cron, scheduledJobs } from /*...*/
// ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to stop/resume the internal event loop?
I want to use croner in a distributed manner with some leader-election algorithm enabled, so only the elected leader fires cron jobs.
I need to stop the event loop when the current node is demoted from being leader, and resume it after being promoted.
Beta Was this translation helpful? Give feedback.
All reactions