[GH-ISSUE #88] [QUESTION] Is it safe to run multiple instances of worker? #2048

Closed
opened 2026-03-15 18:54:15 +03:00 by kerem · 2 comments
Owner

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.

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.
kerem 2026-03-15 18:54:15 +03:00
Author
Owner

@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 ps command to list all workers processes.

Please let me know if you run into any issues!

<!-- gh-comment-id:587272006 --> @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 ps` command to list all workers processes. Please let me know if you run into any issues!
Author
Owner

@gunnsth commented on GitHub (Feb 18, 2020):

Thanks.

<!-- gh-comment-id:587714330 --> @gunnsth commented on GitHub (Feb 18, 2020): Thanks.
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#2048
No description provided.