fanforce-workers 0.4.5 → 0.4.6

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
- OTkwMDc4MGQ4MThhZWFjY2NjZDczMDExOTVlMGE3NGY2OWQzYjllOQ==
4
+ NzM0OWU4ZTQxNDBkYzA2YjQyNDg5YTUwZWJhNGE5M2RhNmI1OGJmYg==
5
5
  data.tar.gz: !binary |-
6
- MjIyNWQ2YTMzNjlhZGY1Y2EyZjA5Y2I1N2I2ZWQxN2NhOTFhNjdmYg==
6
+ M2I3NjY0Y2IwYmE4ZThhZWVlNGVlYmMzYjgyNTgwNjMwZjdlMTUzYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODhiN2NiMDBhYjliM2VlODY2MmJjNTdjZjg3ZGFhOGQ5ZDMzMzk5OWIyNWY3
10
- MGRjOWNkOWRkODNlMDU4NWNkM2ZkMTgyODlmMmU2ZDM5NTg3MmM4MDEyYzEw
11
- OGY1ZjkzYmM1YmZjYTdkYjQ0NGM5YzhjMzUzODQzYTA3OTlkM2Q=
9
+ NWU2MDYxMzc0OWQzZWM0OTNiOTMwZmQ1MWJmZThlNmJmNGU5ZGRmNDAxNzVi
10
+ OWFlNTI5OTU2Y2RhNjM4MGYwMTMyMjc2OTczMGIxOWZlM2Q3MzAwZGUxNTJl
11
+ ZjFiZTA5NmE3NWU0MWE5ODdhODQzMDY2YjkyMGRiY2E1ZDU1NGY=
12
12
  data.tar.gz: !binary |-
13
- MDY3YTFlMWI5YTFiOTNjMTQ3MTNiYTQ0ZTBiYjkxMDFiOTJkN2RmNDg0N2E1
14
- OWI2YWYxYWRhMWIyMjFlMzU3NmQ2YTgwNGM1ZGE0M2YzZjA3ZjU2MzViNWZm
15
- NTk2MjBiZDQwNWQ1OWJjYWEzMTBmMWRhMjg4ZWNlMGRhZjMzOGY=
13
+ MTdlZmVhYjE0OTEyNDkyN2VlYjIxOWJlMmZiYTJhMTI3YTBlMjhlNjg5NjFj
14
+ OWE1NDg4NGYzMTA3N2E0YzM4MzUyMjI2NjFhZGU4MmY1OTNjMGI5MjA1ZTMw
15
+ ODg3YTIwOTQzOTgxNDhjMjlhNzliNDhjMGE0NTM1YmQwOTRjMGU=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.4.5'
3
+ VERSION = '0.4.6'
4
4
  end
5
5
  end
@@ -52,7 +52,7 @@ class Fanforce::Worker
52
52
  task_data[:env_vars] = @worker_data['env_vars']
53
53
  print 'ADDING TO ERROR QUEUE: '
54
54
  puts task_data.to_json
55
- Fanforce::Workers.iron.queue "#{@worker_data['worker_id']}-ERRORS", task_data
55
+ Fanforce::Workers.add_error @worker_data['worker_id'], task_data
56
56
  msg.delete
57
57
  puts 'DELETED MESSAGE'
58
58
  end
@@ -6,6 +6,10 @@ class Fanforce::Workers
6
6
  @opts = opts
7
7
  end
8
8
 
9
+ def self.add_error(queue_id, payload)
10
+ self.new.iron.enqueue("#{queue_id}-ERRORS", payload)
11
+ end
12
+
9
13
  def iron
10
14
  require_relative 'iron'
11
15
  @iron ||= Fanforce::Workers::Iron.new(@opts)
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.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark