fanforce-worker 0.18.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fanforce/worker/errors.rb +8 -4
- data/lib/fanforce/worker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcd79fa6f80713687c758cef3047128576a52d15
|
4
|
+
data.tar.gz: e9e62d8ec6f0c5fa5355b1784600ba091853b921
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
55
|
-
|
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
|
-
|
182
|
-
|
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
|
|