Add ability to run worker which fetches only jobs without a queue specified #425

Closed
WizardOfOgz opened this Issue Aug 17, 2012 · 3 comments

Comments

Projects
None yet
4 participants
@WizardOfOgz

I have thinking sphinx processes created jobs without a queue. I'm also created delayed jobs with queue set to "Import". I'd like to have a worker handle only the sphinx jobs (the ones without a queue). Then I'd like another worker to handle only the jobs for the "Import" queue.

The problem is that I can't have a worker which only fetches jobs which are not in a queue.

I'm open to suggestions if I'm missing something or there is another way. Otherwise I'll try to find some time to submit add this feature and submit a pull request.

@mcfiredrill

This comment has been minimized.

Show comment
Hide comment
@mcfiredrill

mcfiredrill Jun 2, 2014

Why not just create a queue name? Call it 'default' or something?

Why not just create a queue name? Call it 'default' or something?

@matthull

This comment has been minimized.

Show comment
Hide comment
@matthull

matthull Oct 1, 2014

Note that you can now accomplish something similar by setting a non-nil default queue name. For instance, if you set Delayed::Worker.default_queue_name = :default in an initializer, all your jobs without queue specified will go to 'default' queue.

matthull commented Oct 1, 2014

Note that you can now accomplish something similar by setting a non-nil default queue name. For instance, if you set Delayed::Worker.default_queue_name = :default in an initializer, all your jobs without queue specified will go to 'default' queue.

@betamatt

This comment has been minimized.

Show comment
Hide comment
@betamatt

betamatt Dec 22, 2014

Collaborator

The above suggestion from matthull should be considered the approved answer. Consider this a documentation bug.

Collaborator

betamatt commented Dec 22, 2014

The above suggestion from matthull should be considered the approved answer. Consider this a documentation bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment