Skip to content

One job at a time in workers? #2761

Closed Answered by roggervalf
SupertigerDev asked this question in Q&A
Discussion options

You must be logged in to vote

hi @SupertigerDev, what you are experiencing is expected as you are creating 2 workers, each worker has a concurrency value 1 by default. Each of them will pick 1 job to be processed. Looks like what you are looking for is a global concurrency, I highly recommend you to use bullmq package https://docs.bullmq.io/guide/queues/global-concurrency where this feature is available

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@roggervalf
Comment options

@roggervalf
Comment options

@manast
Comment options

@SupertigerDev
Comment options

@manast
Comment options

Answer selected by SupertigerDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants