resque-unique_at_runtime 2.0.2
Ensures that for a given queue, only one worker is working on a job at any given time. Example: require 'resque/plugins/unique_at_runtime' class StrictlySerialJob extend Resque::Plugins::UniqueAtRuntime @queue = :serial_work def self.perform # only one at a time in this block, no parallelism allowed for this # particular queue end end
Gemfile:
=
Installeer:
=
Runtime afhankelijkheden (1):
resque
>= 1.2