[GH-ISSUE #530] [QUESTION] Does Concurrency parameter only work on same Golang process? #2273

Closed
opened 2026-03-15 19:54:34 +03:00 by kerem · 1 comment
Owner

Originally created by @rendybjunior on GitHub (Aug 27, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/530

I tested Concurrency: 1 configuration, and then I run multiple worker processes on different terminal tab.
The result of my experiment, the concurrency configuration only work for each process, but NOT across processes.

Is this observation accurate? Because the documentation does not explain much about the concurrency.

If the answer is yes, concurrency only work on each process, then if I have multiple workers running on different pods (let say 5 pods) with setting Concurrency: 1, this means I will have 5 concurrent tasks running.

Hope the question is clear enough. Thanks! @hibiken

Originally created by @rendybjunior on GitHub (Aug 27, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/530 I tested `Concurrency: 1` configuration, and then I run multiple worker processes on different terminal tab. The result of my experiment, the concurrency configuration only work for each process, but NOT across processes. Is this observation accurate? Because the documentation does not explain much about the concurrency. If the answer is yes, concurrency only work on each process, then if I have multiple workers running on different pods (let say 5 pods) with setting `Concurrency: 1`, this means I will have 5 concurrent tasks running. Hope the question is clear enough. Thanks! @hibiken
kerem 2026-03-15 19:54:34 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@hibiken commented on GitHub (Aug 31, 2022):

Yes, your observation is correct.
The concurrency option controls how many active goroutines a Server can have.

<!-- gh-comment-id:1232430029 --> @hibiken commented on GitHub (Aug 31, 2022): Yes, your observation is correct. The concurrency option controls how many active goroutines a `Server` can have.
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#2273
No description provided.