fanforce-worker 0.19.3 → 0.20.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: 272c7ef8b93c2e3ce5b4b6f7a34e63a1edcd1ab2
4
- data.tar.gz: b02887d7a4e18b52f7cbc62e4f49ea2f11b7011a
3
+ metadata.gz: 94f0e9ade12c2f424d31648b9b90180c3ce48823
4
+ data.tar.gz: 6f7a964c90f310ff6dc753cbbf2b219a70e334bf
5
5
  SHA512:
6
- metadata.gz: 29534397e001bb7a934eb5a3f4dd1464391303c776a1fcbc35d3215ac46118a3bee7fe0cfbb883a1a501a62ed2f727bb3aa698de576b9cbaab54daf293421538
7
- data.tar.gz: d48ac77f0d70deb54b1d51be975785ebba5696fb6cfc8397942d3755ea250ce43d6252f7e2732f7cc25bcc9212e6861168ffb9a84769f24f82c6c7f28194f0c8
6
+ metadata.gz: db064f01ec15368e8ebae8d6368882e81a6ad5305f11847f9f622887d0c7cfcd3c52ff854834f5787a987967f20d8bedfffc7dc8f5fa92ce36c6308f4523bd9d
7
+ data.tar.gz: b46963cdfb2687c9f7e213d1e21cff02752afa9d830fb7e45a7028894717d687f915af82ab9cd2a7eed1af7680bc5ca5a06354b723a4b78e90ef9e8087f0b5ac
@@ -49,7 +49,8 @@ class Fanforce::Worker::Errors
49
49
  env_vars: worker_env.to_json,
50
50
  retries: job_data[:retries],
51
51
  curl_command: (e.curl_command if e.respond_to?(:curl_command)),
52
- iron: {token: Fanforce::Worker.iron_token, project_id: Fanforce::Worker.iron_project_id}
52
+ iron_token: Fanforce::Worker.iron_token,
53
+ iron_project_id: Fanforce::Worker.iron_project_id
53
54
  }
54
55
  redis.multi do
55
56
  redis.rpush("ERRORS:#{queue_id}", error_id)
@@ -140,9 +141,8 @@ class Fanforce::Worker::Error
140
141
 
141
142
  def self.retry(queue_id, raw_error)
142
143
  error = format(raw_error.symbolize_keys)
143
- params = MultiJson.load(v, symbolize_keys: true) rescue {}
144
- Fanforce::Worker.set_config(iron_token: params[:iron][:token], iron_project_id: params[:iron][:project_id])
145
- Fanforce::Worker.enqueue(queue_id, params, :retries => error[:retries] + 1)
144
+ 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
146
  delete(:queue_id, error[:_id])
147
147
  end
148
148
 
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Worker
3
- VERSION = '0.19.3'
3
+ VERSION = '0.20.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iron_mq