RubyGems Navigation menu

resque-roulette 0.0.1

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.

Gemfile:
=

安裝:
=

版本列表:

  1. 1.0.0 February 21, 2020 (7.0 KB)
  2. 0.0.2 January 25, 2019 (7.0 KB)
  3. 0.0.1 January 25, 2019 (7.0 KB)

Runtime 相依性套件 (1):

resque ~> 1.0

Development 相依性套件 (2):

rake ~> 12.0
rspec >= 3.8

擁有者:

作者:

  • Evan Battaglia, Bruno Casali

SHA 256 總和檢查碼:

=

總下載次數 6,158

這個版本 1,510

版本发布:

授權:

Ruby 版本需求: >= 0

相關連結: