[GH-ISSUE #846] How to add concurrency to a task ? #2437

Closed
opened 2026-03-15 20:30:26 +03:00 by kerem · 1 comment
Owner

Originally created by @sdfjklmin on GitHub (Mar 19, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/846

How to add concurrency to a task ?

Originally created by @sdfjklmin on GitHub (Mar 19, 2024). Original GitHub issue: https://github.com/hibiken/asynq/issues/846 How to add concurrency to a task ?
kerem closed this issue 2026-03-15 20:30:32 +03:00
Author
Owner

@awanganddong commented on GitHub (Mar 20, 2024):

You can recreate a server and specify queues for each of the two servers. so that tasks go into the corresponding queue.

This way, one server sets one concurrency, and the other server can set multiple concurrencies

client.Enqueue(task1, asynq.Queue("notifications"))

<!-- gh-comment-id:2008989247 --> @awanganddong commented on GitHub (Mar 20, 2024): You can recreate a server and specify queues for each of the two servers. so that tasks go into the corresponding queue. This way, one server sets one concurrency, and the other server can set multiple concurrencies client.Enqueue(task1, asynq.Queue("notifications"))
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#2437
No description provided.