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 include 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
Required Ruby Version
>= 2.3.0
Authors
Peter H. Boling, Jonathan R. Wallace
Versions
- 4.0.1 November 15, 2018 (15 KB)
- 4.0.0 November 15, 2018 (15 KB)
- 3.0.2 November 10, 2018 (15 KB)
- 3.0.1 November 10, 2018 (15 KB)
- 3.0.0 November 08, 2018 (15 KB)