resque-loner icon indicating copy to clipboard operation
resque-loner copied to clipboard

How to set all queues to unique job by default

Open tamvm opened this issue 12 years ago • 1 comments

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,

tamvm avatar Oct 29 '13 07:10 tamvm

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

salgadobreno avatar Apr 01 '14 17:04 salgadobreno