Categories: None [Edit]

resque-roulette

https://rubygems.org/gems/resque-roulette
https://github.com/trustvox/resque-roulette
Usually Resque workers work on queues in the given order (if there is something in the first, work it, otherwise if the there is something in the second, work on it, and so on). This plugin randomizes the order of the queues based on weights, so that a given queue will be the first queue to try based on a probability weight. Given queues A, B, C, D and weights 4, 3, 2, 1, repsectively, A will be first 40% of the time, B 30%, C 20%, and D 10%. In addition, when B is first, A will be second 4/7ths of the time (4 / [4+2+1]), and so on. The project is inspired by resque-fairly, which unfortunately mathematically does not give you this control over the weights.

Total

Ranking: 114,863 of 195,762
Downloads: 6,634

Daily

Ranking: 102,761 of 195,747
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,384,293,602rake
291,006,320,288rspec
95053,980,915resque

Owners

#GravatarHandle
1iconbrunoocasali