job_boss 0.7.17 → 0.7.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/job_boss.gemspec +1 -1
  2. data/lib/job_boss/boss.rb +2 -1
  3. metadata +26 -4
data/job_boss.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "job_boss"
7
- s.version = '0.7.17'
7
+ s.version = '0.7.18'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Brian Underwood"]
10
10
  s.email = ["ml+job_boss@semi-sentient.com"]
data/lib/job_boss/boss.rb CHANGED
@@ -92,7 +92,8 @@ module JobBoss
92
92
 
93
93
  if jobs.empty?
94
94
  jobs = wait_for_jobs
95
- jobs.each {|job| job.update_attributes(:started_at => Time.now) }
95
+ jobs = Job.pending.find(jobs)
96
+ Job.update_all(['started_at = ?', Time.now], ['id in (?)', jobs])
96
97
  end
97
98
 
98
99
  [available_employee_count, jobs.size].min.times do
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: job_boss
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.7.17
4
+ hash: 39
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 18
10
+ version: 0.7.18
6
11
  platform: ruby
7
12
  authors:
8
13
  - Brian Underwood
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-06-13 00:00:00 -04:00
18
+ date: 2011-06-23 00:00:00 -04:00
14
19
  default_executable: job_boss
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
@@ -21,6 +26,9 @@ dependencies:
21
26
  requirements:
22
27
  - - ">="
23
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
24
32
  version: "0"
25
33
  type: :runtime
26
34
  version_requirements: *id001
@@ -32,6 +40,9 @@ dependencies:
32
40
  requirements:
33
41
  - - ">="
34
42
  - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
35
46
  version: "0"
36
47
  type: :runtime
37
48
  version_requirements: *id002
@@ -43,6 +54,9 @@ dependencies:
43
54
  requirements:
44
55
  - - ">="
45
56
  - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
46
60
  version: "0"
47
61
  type: :runtime
48
62
  version_requirements: *id003
@@ -158,17 +172,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
172
  requirements:
159
173
  - - ">="
160
174
  - !ruby/object:Gem::Version
175
+ hash: 3
176
+ segments:
177
+ - 0
161
178
  version: "0"
162
179
  required_rubygems_version: !ruby/object:Gem::Requirement
163
180
  none: false
164
181
  requirements:
165
182
  - - ">="
166
183
  - !ruby/object:Gem::Version
184
+ hash: 23
185
+ segments:
186
+ - 1
187
+ - 3
188
+ - 6
167
189
  version: 1.3.6
168
190
  requirements: []
169
191
 
170
192
  rubyforge_project:
171
- rubygems_version: 1.6.2
193
+ rubygems_version: 1.3.7
172
194
  signing_key:
173
195
  specification_version: 3
174
196
  summary: Asyncronous, parallel job processing