mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #554] [FEATURE REQUEST] Named Scheduler or Unique ID #263
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mirusky on GitHub (Oct 5, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/554
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
Kind of a problem, as documentations suggests:
But at same time it says:
So we can't write the Server and Scheduler at same code when the server scales / has many instances.
Describe the solution you'd like
My proposal is create a UniqueID or Named Scheduler, and asynq checks if there's a scheduler with the given name or id, so in that way even when we scale the Server code with scheduler we don't have the problem of duplicated tasks. Something like:
Describe alternatives you've considered
Save in database / redis, how many schedulers are up and if the number is 1, we skip the scheduler. But it's not a safe option since we could create a scheduler and the number of scheduler isn't updated so it create many schedulers and have duplicated tasks.
Additional context
No more context