-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
A single Scheduler for all queues? #14
Comments
The main reason is that I tried to keep this consistent with
Whichever way we decide to do it, I don't mind too much because I think most people would just do (which is still the most elegant way, I think :):
If we were to change this though, it'd be better to do it in |
Actually, queues are used in RQ for more than just enqueueing stuff, and they are passed around like objects that have a name, which makes sense to bind them to a specific queue. For schedulers, this typically is not the use case, I think. That said, I think adding the
Agreed fully. |
+1 for .schedule_at() |
Hi. I don't understand how queue handling works currently (0.9, comparing to 0.7). The Another thing is that And the last thing - It looks somehow inconsistent for me. My use case was to schedule tasks for run in multiple queues, not only for default. I thought that creating multiple schedulers with different queue names passed as arg is the solution. But it isn't. I've finnally solved this by rolling back all changes (leaving just one Scheduler) and passed queue_name to As far I understand the code, the
I think that removing Just was my 5 cents. Thanks for the great library, anyway! Kind Regards, |
I'm currently using rq-scheduler in one of my projects, and I was a bit confused when I learned that a scheduler has a queue name argument.
I'm not 100% sure why this feels unnatural to me. Could we make it so that the following is always the case?
Instead of having three different instances of schedulers for this? I do realize putting the callables onto the queues directly would require three different Queue instances, so I understand your choice for a Scheduler instance belonging to a single Queue.
Nevertheless, I think "a scheduler" is useful to have as a "central component" that you can ask to schedule stuff for you to any queue. Thoughts?
The text was updated successfully, but these errors were encountered: