fanforce-workers 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/workers/version.rb +1 -1
- data/lib/fanforce/workers/workers.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGE1MTc2NTljNzU0M2Y3ZWY5Y2VmNmJiOTVmMmYyNWY3YWYxNTI1OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzZiMTk5Y2E1YmUxMzA1ODkyNjI3ZTQzZTIzZTQxNjgwODg4MGNlOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjE0NTM1NjliY2MzMWEwNzhiYmI1NzYyNDI0NzJiNzY1MDczYzM5ODA4NzZj
|
10
|
+
NWE1MDdiMmNiOWI2OGNlYWQ2ZTI3NmQxMGY1MzIxMTY2N2FkNzk4ZGVhNDdl
|
11
|
+
MTYyNzlmM2VlMjhjNDgyNTAyMDdiYzU2YjgyMTU0NDM0NmUxZmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjhhOWQyZTdhZGI3MmY1YzJjNjAyMzZmODMyMWE1MDllNTc1Y2M1Mjg2Mjlk
|
14
|
+
YzhmZTk1OGQ4Y2M5NjA0NDMxODY5NGUzNjI4MmE2MDY4ZDVkZDc4MTdmMWE1
|
15
|
+
Y2MyZTQwM2Q4NzAzMmE3Mzg0N2JiYzM0OTE3NGJiYzA4ZDUwODg=
|
@@ -21,9 +21,9 @@ class Fanforce::Workers
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def retry_error(queue_id, msg_id)
|
24
|
-
msg = iron.client.queue(queue_id + '-ERRORS').
|
24
|
+
msg = iron.client.queue(queue_id + '-ERRORS').peek(msg_id)
|
25
25
|
data = MultiJson.load(msg.body, :symbolize_keys => true)
|
26
|
-
iron.enqueue queue_id, params: data[:params], retries: data[:
|
26
|
+
iron.enqueue queue_id, params: data[:params], retries: data[:retries] + 1
|
27
27
|
msg.delete
|
28
28
|
end
|
29
29
|
|