Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] WorkerPool with different configuration for queues #2090

Open
ankush opened this issue May 15, 2024 · 2 comments
Open

[feature] WorkerPool with different configuration for queues #2090

ankush opened this issue May 15, 2024 · 2 comments

Comments

@ankush
Copy link
Contributor

ankush commented May 15, 2024

Right now we can provide fix list of queues for WorkerPool.

So if I have two queues but I want dedicated set of workers for one of the queue then I need to run a separate pool. This reduces benefit we can get from shared memory in pool.

Possible solution:

  • Provide arguments for combination of queues+count.
  • I am not sure what would be good CLI argument design for this
@ankush
Copy link
Contributor Author

ankush commented May 27, 2024

Potential CLI: rq worker-pool --queue x,y,z:5 --queue a,b,c:2

Internal structure can be dict[tuple[queue, ...], int]

@ankush
Copy link
Contributor Author

ankush commented May 27, 2024

@selwin will you accept a PR for something like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant