fanforce-worker 0.20.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fanforce/worker/errors.rb +2 -1
- 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: 6a4b28991d50e9ee0dea97df677de5d40a6fce77
|
4
|
+
data.tar.gz: f0d3d9b6c96b93155d9766cb479181ff7f0d1fbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a476332bb11bf5a6b333feb2f741511ddec6ea879f1f8c4e3b2a653a02311b0fd3e5ff389086899536e818d818075d986e575dba13b2823e8f1919962fe4b5b
|
7
|
+
data.tar.gz: 19f62f6e4af99f3df70b264d8265a5e9811ffad1a1b17e7c35f91b0ee45262e05e3b787f2fa8a5fcc595d95f8b89509fd074b2aba11a4ed1af9f98d1ed870100
|
@@ -141,8 +141,9 @@ class Fanforce::Worker::Error
|
|
141
141
|
|
142
142
|
def self.retry(queue_id, raw_error)
|
143
143
|
error = format(raw_error.symbolize_keys)
|
144
|
+
params = MultiJson.load(error[:raw_json], symbolize_keys: true) rescue {}
|
144
145
|
Fanforce::Worker.set_config(iron_token: error[:iron_token], iron_project_id: error[:iron_project_id])
|
145
|
-
Fanforce::Worker.enqueue(queue_id,
|
146
|
+
Fanforce::Worker.enqueue(queue_id, params, :retries => error[:retries] + 1)
|
146
147
|
delete(queue_id, error[:error_id])
|
147
148
|
end
|
148
149
|
|