resque-lonely_job 0.0.1
Ensures that for a given queue, only one worker is working on a job at any given time. Example: require 'resque/plugins/lonely_job' class StrictlySerialJob extend Resque::Plugins::LonelyJob @queue = :serial_work def self.perform # only one at a time in this block, no parallelism allowed for this # particular queue end end
Gemfile:
=
安裝:
=
Runtime 相依性套件 (2):
mock_redis
~> 0.4.1
resque
~> 1.20.0