Skip to content
Discussion options

You must be logged in to vote

Short answer first: the framework treats timers as local by design, and the duplicate you see is not really a timer problem. Below are the facts you can rely on, then brief sketches of the available solutions, because which one fits depends on numbers only you have.

Timers. SendAfter and SendEvery live inside the process that created them: not persisted, not migrated, not deduplicated. Node cron is the same one level up: stateless, node-scoped, and a job name is unique within the node, so the same job on every pod fires once per pod. That answers your second question. Local only, never responsible for reliable execution.

The cause. Two timers fire because two live activations of the same …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LIGUANGYAO
Comment options

Answer selected by LIGUANGYAO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants