mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #88] [QUESTION] Is it safe to run multiple instances of worker? #1037
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#1037
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 @gunnsth on GitHub (Feb 18, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/88
Is it safe to use 4x workers with for example concurrency 20 each? For example in a containerized environment, where each worker runs in its own container?
Just wondering because I did not see this addressed specifically in other questions or documentation.
@hibiken commented on GitHub (Feb 18, 2020):
@gunnsth Thanks for opening an issue and asking this question.
You should be able to run multiple worker processes connecting to the same Redis instance and read from the same queue. Alternatively, you can run multiple worker processes with each reading from different queues.
There's
asynqmon pscommand to list all workers processes.Please let me know if you run into any issues!
@gunnsth commented on GitHub (Feb 18, 2020):
Thanks.