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: 17,207 of 197,010
Downloads: 116,927
Daily
Ranking: 10,706 of 196,979
Downloads: 129
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 31,071 | 46,422 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,426,181,701 | rake |
| 29 | 1,024,574,696 | rspec |
| 54 | 753,283,545 | ruby-progressbar |
| 204 | 274,066,827 | timecop |
| 356 | 146,712,727 | bundler-audit |
| 953 | 54,964,536 | resque |
| 1,605 | 25,329,631 | fakeredis |
| 2,710 | 7,533,125 | anonymous_loader |
| 8,323 | 534,515 | rspec-block_is_expected |
| 8,487 | 511,033 | rspec-stubbed_env |
| 11,956 | 240,586 | appraisal2 |
| 12,341 | 224,889 | kettle-dev |
| 13,033 | 200,151 | turbo_tests2 |
| 14,349 | 165,141 | require_bench |
| 14,846 | 154,811 | stone_checksums |
| 15,454 | 143,232 | kettle-test |
| 15,696 | 139,162 | gitmoji-regex |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |