nexia_worker_roulette 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 827f6622758baeb0edd361b8df5ca0cc43a732b2
4
- data.tar.gz: 202c53449f1c81ff95b35215a1d058c39e36f1e7
3
+ metadata.gz: 7e640faada9ad327a75a1aac74740cfb0195cf61
4
+ data.tar.gz: 0e4b0065d02f2d944e435f7b9c98eacdeaa9e8b3
5
5
  SHA512:
6
- metadata.gz: 3e0bdbf78d9ca0ee4ff59cb355c46062e7f16b00d2107020b26b2d13d0dc582bc47c71c4f5361c9dcc33877f502718b77e3f32d8b7abe4386613bdb369d98062
7
- data.tar.gz: 12030621e8f476a899d03fa72aca6b4237bcc180761167b5f95763a12d52a02a47d0211dc054bebcf14d85b7e90490a70083a62cdd5c2fa1c23f09e3492469eb
6
+ metadata.gz: 03846d8236ab3ae4eb9f59ff04d02aa7bc6886016157add2831a08f0dc28ffcfd311b40af43ffd244544315d1f1f0d09a0ee904428765c4dd5e314e26b04b15c
7
+ data.tar.gz: 81d771efa84dff7511216b79dd046b7c7d10bb3901f04d335053a1a77ecd15cd832ddd14b195a667cc2df16805135e43e25ee9765357720130925ab98b5b5ce1
@@ -12,7 +12,7 @@ module WorkerRoulette
12
12
  class WorkerRoulette
13
13
  JOB_BOARD = "job_board"
14
14
  JOB_NOTIFICATIONS = "new_job_ready"
15
- DEFAULT_POLLING_TIME = 2
15
+ DEFAULT_POLLING_TIME = 0.01
16
16
  DEFAULT_REDIS_CONFIG = {
17
17
  host: 'localhost',
18
18
  port: 6379,
@@ -183,7 +183,7 @@ module WorkerRoulette
183
183
  if remaining_jobs > 0
184
184
  wait_for_work_orders(&on_message_callback)
185
185
  else
186
- sleep 2
186
+ sleep 0.01
187
187
  wait_for_work_orders(&on_message_callback)
188
188
  end
189
189
  end
@@ -1,3 +1,3 @@
1
1
  module WorkerRoulette
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexia_worker_roulette
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Saieg