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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4ccab738c3d5df9e16d0c4e4435415b2f1f5a80
4
- data.tar.gz: 0393767cf0674f6a7a69bf708a2dc6b87e10e5be
3
+ metadata.gz: 6a4b28991d50e9ee0dea97df677de5d40a6fce77
4
+ data.tar.gz: f0d3d9b6c96b93155d9766cb479181ff7f0d1fbc
5
5
  SHA512:
6
- metadata.gz: 9002ad6a459f07f7579fe6c9c46bc9aa42ce2c35403ae3597a89a0a2413d2ffe006a071852192b98d1d686ba9d15e2faae2d10655ddc9745bcbf8e78a0b7afba
7
- data.tar.gz: 876340024186cc17bf4695ec1047d9696ff4cb01a72b5e254b56160c7f068f504a0b2916948884682cabb69b2870b6d996b9843c0220b826703dfc89d17cd89d
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, error, :retries => error[:retries] + 1)
146
+ Fanforce::Worker.enqueue(queue_id, params, :retries => error[:retries] + 1)
146
147
  delete(queue_id, error[:error_id])
147
148
  end
148
149
 
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Worker
3
- VERSION = '0.20.1'
3
+ VERSION = '0.21.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.20.1
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark