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 +4 -4
- data/lib/fanforce/worker/errors.rb +4 -4
- data/lib/fanforce/worker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94f0e9ade12c2f424d31648b9b90180c3ce48823
|
4
|
+
data.tar.gz: 6f7a964c90f310ff6dc753cbbf2b219a70e334bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
144
|
-
Fanforce::Worker.
|
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
|
|
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.
|
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-
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iron_mq
|