fanforce-workers 0.6.7 → 0.6.8

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
- MjcwNDU5NWRjOGUwNGRiMzZkNTlkMmU4OGVjZDljNmM2Nzg4ZjZjNg==
4
+ MmNkZDRjOTNhYmMwMGE5NmY1ZGQ0NTA5ZDY0MGZiNzY5MDVkZWNiNw==
5
5
  data.tar.gz: !binary |-
6
- ZGMxZTM4Y2JiYmEzNmJkNWIwYjUwNDY3ZjAzNjk0N2U4YmIyZTBmMg==
6
+ NzUwMDI4YmRhNmM4MzA3YTFkZGQ4Yjg5OWFjYWFlNGQ2ZTM2ZTRjMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjBkMTAzOGJhYmQwMjk0YjI4NDczMWMyZmMyY2FkNmRmNjg3YmM0MjJjMTQz
10
- OWZlZmYwNjBiYjY5MmEyYjM0YWU0MzFkNDhhYjE4ZjUzYjRmZTA5MWYwODFi
11
- ZDBlMjVkMDg2OTc1YTVhYmFiMThmZjZkN2MzM2E5OGJmNDA3ZGM=
9
+ YzZjODM1MjZmM2NjNmM5NGUyMzU0YmE1M2M2OGFiZjMyODExMjUxMzliNmY3
10
+ YTBjY2MzOTFlYmUwOWYyNmQzYjFlY2FkYjRhMTViNjYyY2VjNjAxMDYzZGVj
11
+ OTVhZWQwNjI3ZmQ2OWQ3MjI2ZWZhNmU1ODIwNTgwMWQ3YmJhZjU=
12
12
  data.tar.gz: !binary |-
13
- YzRkYWViOGVmNTk0Y2E1ZjU1YzZlZWVmYWMzYTIyOWY2NzFlYTFlNzY2MzBm
14
- YzdlNmU5NDE2NDg4YjEzYWE3ZDMzMjg4OTQ4ODdmNDdkOGRlNTQzOGVmZGM2
15
- MGZiMjVhYTUyYjQzZGE2MDI3OWY2MWRjZmJlOTJiN2FlZTZkM2U=
13
+ NzNmNDBkNWVkYzUyZTI0MDMyZmJkOTZjOGIxYWU1ZDhkNGZiMTM1Y2NjZTU4
14
+ OGU3MmM5M2NmMmNjNTY4MTk3NTEzOTdmYjk3MTkwZmZiNzUwYmMwYzM2ZDE2
15
+ OGY2YjBkZWZmNmIzZjgyMmE4OWJiZWI3Yzc4NWMwYTE3MTM5ZTQ=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.6.7'
3
+ VERSION = '0.6.8'
4
4
  end
5
5
  end
@@ -27,7 +27,7 @@ class Fanforce::Workers
27
27
  details_id: details_id,
28
28
  exception: truncate(error[:exception]),
29
29
  message: truncate(error[:message].to_s),
30
- params: truncate(error[:message].to_json),
30
+ params: truncate(error[:params].to_json),
31
31
  errored_at: error[:errored_at],
32
32
  retries: error[:retries],
33
33
  env_vars: truncate(error[:env_vars].to_json),
@@ -42,12 +42,12 @@ class Fanforce::Workers
42
42
 
43
43
  def error_details(queue_id, details_id)
44
44
  cache = iron_cache.cache("#{queue_id}-ERRORS").get(details_id)
45
- MultiJson.load(cache.body, :symbolize_keys => true)
45
+ MultiJson.load(cache.value, :symbolize_keys => true)
46
46
  end
47
47
 
48
48
  def retry_error(queue_id, msg_id, details_id)
49
49
  cache = iron_cache.cache("#{queue_id}-ERRORS").get(details_id)
50
- cache_data = MultiJson.load(cache.body, :symbolize_keys => true)
50
+ cache_data = MultiJson.load(cache.value, :symbolize_keys => true)
51
51
  enqueue(queue_id, cache_data[:params], cache_data[:retries] + 1)
52
52
 
53
53
  cache.delete and iron_mq.queue("#{queue_id}-ERRORS").delete(msg_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.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark