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

Closed
ankush opened this issue May 15, 2024 · 3 comments
Closed

[feature] WorkerPool with different configuration for queues #2090

ankush opened this issue May 15, 2024 · 3 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?

@selwin
Copy link
Collaborator

selwin commented Aug 5, 2024

@ankush sorry, I just saw this message. Sorry, but I don't think this will get into the RQ core. But if you want, we can rework or improve RQ's internal implementation to provide hooks that you may require so you can implement it more easily in a separate script or package.

I'm closing this issue for now, please reopen if you want to propose some changes to how WorkerPool is currently implemented.

@selwin selwin closed this as completed Aug 5, 2024
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

2 participants