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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTIwODQwZjBlODIxMTMzYmFlNzYzZWY0YzIxMTEzZWRlYjRkYWRmNg==
4
+ Mjc2Nzk1MDdjNzZmMzhiNjI5Mzg2ZjA5OWM3ZjgwNzJlOTExOTgxYQ==
5
5
  data.tar.gz: !binary |-
6
- MDlhMDMyY2Q4YWMzYzgwMmQyYjFiOWFjODBmZWFlYTI2MmYxOWRiMA==
6
+ ZDRlZGVmZWE4ZmRiMWIxNmY2ZTRjMDJjZjU0Mjg0OGFhZTg1YzIyMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzIwZmMzMzYyOGVjMWY2NDNjOThjN2NmODk0Mzc5YjEwNjRkZDM4MDkzY2Q4
10
- MDVmZmYyMDAwZGYyYmUwZTIyYTQzNjA4YTFiODcwYThhNGNkZmRjN2RhNDkz
11
- NzYzOGZlN2QwZTY1MzJkOTBiNGZlMmJhMGYxMjgwMTdiNTEwYTg=
9
+ NGYzODM5NTg4YTgzNmNmZTlmOThlNGU0Mjc0OTRiMzUyNmE5ODUxNjgyMmMx
10
+ ZmM5M2M5NTVlOTU4M2E5ODU2MjgzMDFjMzU1OWVmODUxODZjZmZhZjQ1NTBj
11
+ ODRlNTZjYWNhZTIzZjc5MzFmZjVjZTM5ODc2ODhiOWE5MjVlMGE=
12
12
  data.tar.gz: !binary |-
13
- NGMxODhiMTRkNDllOTFkZTg5MTYxZWE5NWEwNTQ3NzZiYWY4M2M3YmZkM2E1
14
- ZDkxNTdkZTQ5YTRmZDU2ZmM4YjVjNzg0ZTUxNmRlMTAwMzlhYmNhYTZlMmRi
15
- YWI4NmZmZWJhZGYyYWQ4MTViNTlkMDRjNDU4Zjc1MmI1N2ViOTA=
13
+ ZTVlMTg4YjY2M2ZmODdhNGNlMDIxOWM0YWM3YTA4ZjViMmQzMWM3ZmY4NTAw
14
+ N2RhZTEwNzQxYWM3ZWZmZTkzMjJhMzZmZjk1YzBjNGZmZjNmM2VjMzBjMWQ3
15
+ NGEzZGM2NDdlYjI1NWNiOGM0ZDE4MGRiYjBkMmIwNjJiZjk2MzY=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.7.6'
3
+ VERSION = '0.7.7'
4
4
  end
5
5
  end
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark