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

How to set all queues to unique job by default #34

Open
tamvm opened this issue Oct 29, 2013 · 1 comment
Open

How to set all queues to unique job by default #34

tamvm opened this issue Oct 29, 2013 · 1 comment

Comments

@tamvm
Copy link

tamvm commented Oct 29, 2013

Hi,

Thanks for your contribution, it's pretty helpful gem. However, currently, I have dozen queues and it's quite depressed to add include Resque::Plugins::UniqueJob for those queues. So I'd like to request a feature that set unique jobs for all queues by default. Feel free to mark as done or remove this issue if you think this feature is not necessary.

Thanks,

@salgadobreno
Copy link

I doubt this would get into the gem... try this:

class UniqueJob
include Resque::Plugins::UniqueJob
end

class JobX < UniqueJob
def perform(arg)
end
end

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