fanforce-workers 0.7.6 → 0.7.7
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 +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mjc2Nzk1MDdjNzZmMzhiNjI5Mzg2ZjA5OWM3ZjgwNzJlOTExOTgxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDRlZGVmZWE4ZmRiMWIxNmY2ZTRjMDJjZjU0Mjg0OGFhZTg1YzIyMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGYzODM5NTg4YTgzNmNmZTlmOThlNGU0Mjc0OTRiMzUyNmE5ODUxNjgyMmMx
|
10
|
+
ZmM5M2M5NTVlOTU4M2E5ODU2MjgzMDFjMzU1OWVmODUxODZjZmZhZjQ1NTBj
|
11
|
+
ODRlNTZjYWNhZTIzZjc5MzFmZjVjZTM5ODc2ODhiOWE5MjVlMGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTVlMTg4YjY2M2ZmODdhNGNlMDIxOWM0YWM3YTA4ZjViMmQzMWM3ZmY4NTAw
|
14
|
+
N2RhZTEwNzQxYWM3ZWZmZTkzMjJhMzZmZjk1YzBjNGZmZjNmM2VjMzBjMWQ3
|
15
|
+
NGEzZGM2NDdlYjI1NWNiOGM0ZDE4MGRiYjBkMmIwNjJiZjk2MzY=
|
@@ -34,6 +34,21 @@ class Fanforce::Workers
|
|
34
34
|
env_vars: truncate(error[:env_vars].to_json),
|
35
35
|
curl_command: truncate(error[:curl_command].to_s)
|
36
36
|
}.to_json)
|
37
|
+
rescue => e
|
38
|
+
puts '-----------------------------------------------------'
|
39
|
+
puts 'WORKER ERROR WHILE RECOVERING FROM JOB ERROR:'
|
40
|
+
puts e.message
|
41
|
+
puts e.backtrace
|
42
|
+
puts '-----------------------------------------------------'
|
43
|
+
puts 'JOB ERROR:'
|
44
|
+
puts "details_id: #{details_id}"
|
45
|
+
puts "exception: #{truncate(error[:exception])}"
|
46
|
+
puts "message: #{truncate(error[:message].to_s)}"
|
47
|
+
puts "params: #{truncate(error[:params].to_json)}"
|
48
|
+
puts "errored_at: #{error[:errored_at]}"
|
49
|
+
puts "retries: #{error[:retries]}"
|
50
|
+
puts "env_vars: #{truncate(error[:env_vars].to_json)}"
|
51
|
+
puts "curl_command: #{truncate(error[:curl_command].to_s)}"
|
37
52
|
end
|
38
53
|
|
39
54
|
def delete_error(queue_id, job_id, details_id)
|