fanforce-worker 0.18.1 → 0.19.0

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: 0830db9b002626f0322a04e80875636e6989e550
4
- data.tar.gz: 94d985258f677d87b52c0db1ac344fe3351d3d0b
3
+ metadata.gz: dcd79fa6f80713687c758cef3047128576a52d15
4
+ data.tar.gz: e9e62d8ec6f0c5fa5355b1784600ba091853b921
5
5
  SHA512:
6
- metadata.gz: 80dd1579055722ffddf44d43c0de75fcc900f98ec4e2ff8b67529e77ac0cf899da015159a9c6ce35964cd63cd1788a6d36981236eac3e9fbb7856805e715320d
7
- data.tar.gz: 225647e9950ee6ed15a02cbefd7ce3f0039f73d902cb77eb281a18ad8fc1bd0f603364916694ce73e902d926e1cb60aed54abb199afb696f7174264589849147
6
+ metadata.gz: e14bf0892d1a78b8de6819adb9b1f69c910e2553f6bc9efd5f2a07faa1c505999a72f029e040fd1ee24e850a89575353f3678ad62e9ec7383df00b81baa50f28
7
+ data.tar.gz: ec1e5133efda4aa6caff4bdee2788a5427086004c47c6d708955e08ceab5ec70e007719782eb4c78ee9b468d7d2e7fa4be85b1ea7a1f4bc432bf616c6691d31f
@@ -51,8 +51,10 @@ class Fanforce::Worker::Errors
51
51
  curl_command: (e.curl_command if e.respond_to?(:curl_command)),
52
52
  iron: {token: Fanforce::Worker.iron_token, project_id: Fanforce::Worker.iron_project_id}
53
53
  }
54
- redis.rpush("ERRORS:#{queue_id}", error_id)
55
- redis.hmset("ERRORS:#{queue_id}:#{error_id}", error.flatten)
54
+ redis.multi do
55
+ redis.sadd("ERRORS:#{queue_id}", error_id)
56
+ redis.hmset("ERRORS:#{queue_id}:#{error_id}", error.flatten)
57
+ end
56
58
  rescue => e
57
59
  log.fatal '-----------------------------------------------------'
58
60
  log.fatal 'WORKER ERROR WHILE RECOVERING FROM JOB ERROR:'
@@ -178,8 +180,10 @@ class Fanforce::Worker::ErrorList
178
180
  redis_responses << Error.get_all(@queue_id, error_id)
179
181
  end
180
182
  end
181
- redis_responses.map do |redis_response|
182
- Error.retry(@queue_id, redis_response.value)
183
+ redis.multi do
184
+ redis_responses.map do |redis_response|
185
+ Error.retry(@queue_id, redis_response.value)
186
+ end
183
187
  end
184
188
  end
185
189
 
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Worker
3
- VERSION = '0.18.1'
3
+ VERSION = '0.19.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark