nexia_worker_roulette 0.2.6 → 0.2.7

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: b27103027e8104f2bdfc46d1eadc13b0ad18254c
4
- data.tar.gz: 49d40d641d1ba90e0bc5cb0c645e87071f2e0e47
3
+ metadata.gz: ec6525f3bda2ad54c82d74f25c73c7a1cbf73468
4
+ data.tar.gz: 3b7be523d1313fec079264cf92a811b908bd4594
5
5
  SHA512:
6
- metadata.gz: c0febfc96cc5e64720cf08079d42abb92f6e8eede7ce32e9be0340c4407a4e25e044bdaa5c6bd7ab5ce7e4b2e8f38c11ca01f373c0ca106288d06d416b2e17c9
7
- data.tar.gz: 2d958c6ede7035620241580a5ce3563ba8cdd30d483cb9bf45fef040fc72607ecb72510639341d5b54e4114f4aac106e8bb544332a9cc2f5772f20091d092202
6
+ metadata.gz: 62d4121ae9e1181b7f2176b6c5de39a14c025ce112f28e2fbaaedbc03bf243ef12d0002be4e09c35f2dcbca92719e54de87c410248c4c8bb8530272683b91522
7
+ data.tar.gz: 8c7536332115a3a35d88a7c6211fe4c385d7f5b1af7c828dda3f816c9d3c47d8fd0f0810ea713e86409d503b9a3c26d1cbd52743f452406bcb433afc138db334
@@ -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 @polling_time
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.6'
2
+ VERSION = '0.2.7'
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.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Saieg
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-06-17 00:00:00.000000000 Z
13
+ date: 2016-07-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oj