fanforce-workers 0.0.2 → 0.0.3.pre

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
- NTQyY2U4MGNlYjYyYzU2ZDJhOTlmMzBlZjVjZmIzMzRlZjZmMzI5Yg==
4
+ YzhiMTYxMGQzYWNkZTczNWRjNjlmODMxODFjNDllMTI0NWIyZjUwMg==
5
5
  data.tar.gz: !binary |-
6
- YjhiODkwNDBlYTVlMTIwODU3ZjExZjA4YTg1ZmFiOWNlYjg1ZGI4Yw==
6
+ NzZkNDY2MTc3ODExMjYyMDAzZWNhZGQ4NWRhZWFlNzY0NmEwZTBjNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzU2N2VkNTBmNjlhNmQ3OGVmYWUwOGFjOWNlMDE2ODAwNDU3NjA5NmZlNWMx
10
- Nzk4Yjc2OWEzMDVkNjU1NTJjZGYzNGNhYjY1ZDAxNWYyODg2MzNlMWNhMmQx
11
- OTdlYmIxMmFkMjA4Y2YyMWQxNmI4ZjAyZjU0OGY3NmVkNmRhNDQ=
9
+ OGNiYjEyZWZmNmViMzliMWJlN2U0M2VlMGYzZDIzY2ExNzYzMjk0Mzk5Mjkx
10
+ YzhkNzNhZDBjZTRjYzZhYjI2N2JjYzAzNTRkNmIyNGI2N2RhMjQ1MjM2NTUw
11
+ MTgyNjAyY2EyNDU5ODNjNGE0MzdiNDBiNzBhNWJhM2E3YjhlNWQ=
12
12
  data.tar.gz: !binary |-
13
- MmJhZGE3OTVjZWI3Zjc4Mjg5N2Q4ZWQzMjE5M2U1Y2Q4MDVkY2Y3NDJlNDIz
14
- MmQyYWQ0YzZhZDI0ZTU3NDAzMjQzMGE0YWJlOWJkMmUxYWYxYjU4NWE2Y2E0
15
- NTdiMDZmYWY0NjQ1ZGFhM2IxM2I4Y2JjZThmNWY0ZTU2NDhlMmU=
13
+ Yjg1YWY2MzBjNTU3YTNkNTY4MTYxZWNhMjY5ZjhiYThiM2E0NGJiMTYwODBl
14
+ ZGZmMTQ4MmRlODEyMThmOTJiNDljNjJiNzMxYmEwYjQyMTE2YmYzYTAyMGM0
15
+ YzUxYTE4MzBiYWU3Njk5ZDliODAxMDc0OGI5ZTMwYzBjZGQ5ZDQ=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module Workers
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3.pre'
4
4
  end
5
5
  end
@@ -10,9 +10,18 @@ class Fanforce::Worker
10
10
 
11
11
  @init_params = init_params
12
12
  @worker_code = worker_code
13
- @iron_mq.queue(init_params['worker_id']).poll do |msg|
14
- run_worker(msg, 0)
15
- end
13
+ msg = iron_mq.queue(init_params['worker_id']).get #(timeout: 3600)
14
+ puts msg
15
+ puts msg.body
16
+
17
+ msg = iron_mq.queue(init_params['worker_id']).get #(timeout: 3600)
18
+ puts msg
19
+ puts msg.body
20
+
21
+
22
+ #iron_mq.queue(init_params['worker_id']).poll do |msg|
23
+ # run_worker(msg, 0)
24
+ #end
16
25
  end
17
26
 
18
27
 
@@ -38,7 +47,7 @@ class Fanforce::Worker
38
47
  params[:retries] = retries + 1
39
48
  params[:error_message] = e.message
40
49
  params[:error_backtrace] = e.backtrace
41
- Fanforce::Workers::Iron.queue "#{@init_params['worker_id']}-RETRIES", params
50
+ Fanforce::Workers.iron.queue "#{@init_params['worker_id']}-RETRIES", params
42
51
  raise
43
52
  end
44
53
 
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.0.2
4
+ version: 0.0.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark
@@ -69,9 +69,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ! '>='
72
+ - - ! '>'
73
73
  - !ruby/object:Gem::Version
74
- version: '0'
74
+ version: 1.3.1
75
75
  requirements: []
76
76
  rubyforge_project:
77
77
  rubygems_version: 2.0.3