Sha256: 8d32f4170b81554b10937068668f84fd8a78a5cb5852ececff2ee64aa94bf3ba
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
module Resque def self.enqueued?(klass, *args) enqueued_in?(queue_from_class(klass), klass, *args) end def self.enqueued_in?(queue, klass, *args) item = { class: klass.to_s, args: args } return nil unless Resque::Plugins::Loner::Helpers.item_is_a_unique_job?(item) Resque::Plugins::Loner::Helpers.loner_queued?(queue, item) end def self.remove_queue_with_loner_cleanup(queue) remove_queue_without_loner_cleanup(queue) Resque::Plugins::Loner::Helpers.cleanup_loners(queue) end class << self alias_method :remove_queue_without_loner_cleanup, :remove_queue alias_method :remove_queue, :remove_queue_with_loner_cleanup end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-loner-1.3.0 | lib/resque-ext/resque.rb |