Categories: None [Edit]
resque-unique_at_runtime
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
Total
Ranking: 18,992 of 189,083
Downloads: 88,454
Daily
Ranking: 10,494 of 189,069
Downloads: 93
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,673 | 43,417 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 9 | 1,220,818,024 | rake |
| 29 | 945,702,266 | rspec |
| 56 | 643,260,417 | rubocop |
| 74 | 573,531,079 | pry |
| 100 | 437,460,297 | byebug |
| 179 | 263,813,130 | pry-byebug |
| 188 | 253,642,041 | rubocop-rspec |
| 194 | 246,578,897 | timecop |
| 302 | 155,432,131 | colorize |
| 938 | 50,337,613 | resque |
| 1,560 | 23,384,691 | fakeredis |
| 9,148 | 363,192 | rspec-stubbed_env |
| 9,388 | 344,175 | rspec-block_is_expected |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |