[GH-ISSUE #371] [QUESTION] How to fix duplicate scheduler task in 2 servers? #1177

Closed
opened 2026-03-07 22:06:51 +03:00 by kerem · 3 comments
Owner

Originally created by @anhnmt on GitHub (Dec 30, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/371

Originally assigned to: @hibiken on GitHub.

Sorry my english is not good,
I am having 1 task scheduled every 15 seconds, its task is to send a notification to the user.
when i deploy it on 2 different servers my users get the same 2 messages, i checked on asynq and see 2 scheduled tasks running side by side. Can you help me fix this?

Originally created by @anhnmt on GitHub (Dec 30, 2021). Original GitHub issue: https://github.com/hibiken/asynq/issues/371 Originally assigned to: @hibiken on GitHub. Sorry my english is not good, I am having 1 task scheduled every 15 seconds, its task is to send a notification to the user. when i deploy it on 2 different servers my users get the same 2 messages, i checked on asynq and see 2 scheduled tasks running side by side. Can you help me fix this?
kerem 2026-03-07 22:06:51 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@hibiken commented on GitHub (Dec 31, 2021):

@xdorro thank you for opening an issue!

Would you mind providing more details? Code snippets would be very helpful.

<!-- gh-comment-id:1003261375 --> @hibiken commented on GitHub (Dec 31, 2021): @xdorro thank you for opening an issue! Would you mind providing more details? Code snippets would be very helpful.
Author
Owner

@hibiken commented on GitHub (Jan 3, 2022):

Any updates? I'm closing this for now, but feel free to re-open if you are still seeing the issue.

<!-- gh-comment-id:1004434724 --> @hibiken commented on GitHub (Jan 3, 2022): Any updates? I'm closing this for now, but feel free to re-open if you are still seeing the issue.
Author
Owner

@jinsuojinsuo commented on GitHub (Sep 12, 2022):

Same problem

<!-- gh-comment-id:1243942636 --> @jinsuojinsuo commented on GitHub (Sep 12, 2022): Same problem
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1177
No description provided.