fanforce-workers 0.6.1 → 0.6.2

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
- MTc1M2IzZjlhZTc4YWZlNWZjMWFmZGVkMTFjYmU3Y2IzOWJhZmE5Nw==
4
+ NzliMjBjZGVkNzI0NGFhOWRmNWQ4YjliOWYwNWY3OWRkN2U5ZjMyYw==
5
5
  data.tar.gz: !binary |-
6
- YjM2YzE2YzlhOWI0OWE0ODY5Zjk1YTEyZTIyYjI4YjI0ZGQ0OGU3YQ==
6
+ NzVmNDU3YjBiYzhmNTVkNDM2ZTEzNzhhODQ0MGUzMjJkODg1YmM0MA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2QzNjk3OGVlMTA0ZTQ5YWUwZjVmODI0YzZjZGEzYTUzZTFlY2Q5NDRmMjM1
10
- OTZhYmE5ODhhMmExM2Y5YmY3MmM2YjUyZDUwOGVmNGM2ODZjMTFlZDVlZGE3
11
- YjFjNWFjNjYzMTlkMDNjNTkyODU2ZmExZmFjZmZiY2JkNzhlMWE=
9
+ MjA0ZmRiNGNkMzViNGQ1MTg0YjYxMDg4OTcxMmM0OTAxMTg2NjM1NmEwZjdl
10
+ N2I5NTFmOGQxYmNmOTY0ZWYwNDMyMDY5NTM4NGEwYWIxZGIyMmRjNjQ3Zjk2
11
+ NDRkMmVjNzM5NjUxOTQxMGYxZGRhYzc0ODQ1YzEyN2U4OWUyOWM=
12
12
  data.tar.gz: !binary |-
13
- ZTg0Mzg0ZDIzMGE1NjJjNGE4NjczMWNiMTMxNGJiMGJjMzU2MTA3OGJkMDM0
14
- MjlkMzg4ZmRkZmQ4M2Q0MDg2OWI0NmJlYTY1ODg5MWJkNGVmNzcwZDJiNDky
15
- OTc1OGNiMGNiMDBmNjkwOGZhNTdkZGYyMjVmOTA1NTVjODY5YmQ=
13
+ MGFiNDBjNzIxODI0ODUxNGFhYzY5MGUxZTkxYmE0OGU1YzExYjAwYzM4YjBj
14
+ OGIwZjBhMmYxY2E3MzY5ZTgyOWE2YTgzMzYyYTM4NDA0MzJiNjc5N2JjNDRi
15
+ MWQ1ZDI3YzgyMTI5NzY0NmZmNWY4NjJhZDQ5ZjExMWQyYzkzM2Y=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.2'
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ class Fanforce::Workers
22
22
  def add_error(queue_id, error)
23
23
  require 'uuidtools'
24
24
  details_id = UUIDTools::UUID.random_create
25
- iron_cache.queue("#{queue_id}-ERRORS").put(details_id, error.to_json)
25
+ iron_cache.cache("#{queue_id}-ERRORS").put(details_id, error.to_json)
26
26
  iron_mq.queue("#{queue_id}-ERRORS").post({
27
27
  details_id: details_id,
28
28
  exception: truncate(error[:exception]),
@@ -41,12 +41,12 @@ class Fanforce::Workers
41
41
  end
42
42
 
43
43
  def error_details(queue_id, details_id)
44
- cache = iron_cache.queue("#{queue_id}-ERRORS").get(details_id)
44
+ cache = iron_cache.cache("#{queue_id}-ERRORS").get(details_id)
45
45
  MultiJson.load(cache.body, :symbolize_keys => true)
46
46
  end
47
47
 
48
48
  def retry_error(queue_id, msg_id, details_id)
49
- cache = iron_cache.queue("#{queue_id}-ERRORS").get(details_id)
49
+ cache = iron_cache.cache("#{queue_id}-ERRORS").get(details_id)
50
50
  cache_data = MultiJson.load(cache.body, :symbolize_keys => true)
51
51
  enqueue(queue_id, cache_data[:params], cache_data[:retries] + 1)
52
52
 
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.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark