delayed_job_ironmq 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/delayed/backend/actions.rb +2 -5
  3. metadata +10 -10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -31,11 +31,8 @@ module Delayed
31
31
 
32
32
  def find_available(worker_name, limit = 5, max_run_time = Worker.max_run_time)
33
33
  Delayed::Worker.available_priorities.each do |priority|
34
- messages = ironmq.messages.get(queue_name: queue_name(priority), n: limit)
35
- jobs = messages.map do |message|
36
- Delayed::Backend::Ironmq::Job.new(message)
37
- end
38
- return jobs if jobs.present?
34
+ messages = ironmq.messages.get(queue_name: queue_name(priority), n: 1)
35
+ return [Delayed::Backend::Ironmq::Job.new(messages[0])] if messages[0]
39
36
  end
40
37
  []
41
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_ironmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-06-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: iron_mq
17
- requirement: &70296761562440 !ruby/object:Gem::Requirement
17
+ requirement: &70141137941540 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.4.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70296761562440
25
+ version_requirements: *70141137941540
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: delayed_job
28
- requirement: &70296761561720 !ruby/object:Gem::Requirement
28
+ requirement: &70141137940960 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70296761561720
36
+ version_requirements: *70141137940960
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &70296761560780 !ruby/object:Gem::Requirement
39
+ requirement: &70141137940420 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '2.0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70296761560780
47
+ version_requirements: *70141137940420
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: jeweler
50
- requirement: &70296761560040 !ruby/object:Gem::Requirement
50
+ requirement: &70141137939780 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: 1.8.3
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *70296761560040
58
+ version_requirements: *70141137939780
59
59
  description: IronMQ backend for delayed_job
60
60
  email: info@iron.io
61
61
  executables: []
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: -4190493042544103674
92
+ hash: -4517339817557451073
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements: