Replies: 1 comment
-
Having many workers consuming jobs is the standard use case of BullMQ. Not sure I understand why you need to use manually fetched jobs since you can configure which concurrency level you want to use in every worker (being 1 the default). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I build orchestrator/transcoder applications. For the big picture:
So I have to use the "Manually processing jobs" approach because when the orchestrator has received a task, it does not mean that a worker is ready, because the minimum pool size is 0 (for cost reasons) and there is also a max poll size. limit. And each worker will only have one job concurrency at a time, as it will use a lot of GPU resources through ffmpeg.
I'm looking for documentation/examples on this, but can't find anything.
queue.getActiveCount()
, but that gives me all active jobs in the queue (which is unique) and not per worker. Do I need custom logic built on my side and store information in Redis for example.Beta Was this translation helpful? Give feedback.
All reactions