job_boss 0.7.15 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/job_boss.gemspec +1 -1
- data/lib/job_boss/boss.rb +0 -1
- data/lib/job_boss/job.rb +1 -3
- metadata +4 -4
data/job_boss.gemspec
CHANGED
data/lib/job_boss/boss.rb
CHANGED
|
@@ -117,7 +117,6 @@ module JobBoss
|
|
|
117
117
|
# Priority of a particular queue determines how many jobs get pulled from that queue each time we dequeue
|
|
118
118
|
# A priority adjustment is also done to give greater priority to sets of jobs which have been running longer
|
|
119
119
|
def dequeue_jobs
|
|
120
|
-
logger.info "Dequeuing jobs"
|
|
121
120
|
Job.pending.select('DISTINCT priority, path, batch_id').reorder(nil).collect do |distinct_job|
|
|
122
121
|
queue_scope = Job.where(:path => distinct_job.path, :batch_id => distinct_job.batch_id)
|
|
123
122
|
|
data/lib/job_boss/job.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: job_boss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 35
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 7
|
|
9
|
-
-
|
|
10
|
-
version: 0.7.
|
|
9
|
+
- 16
|
|
10
|
+
version: 0.7.16
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Brian Underwood
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-04-
|
|
18
|
+
date: 2011-04-18 00:00:00 -04:00
|
|
19
19
|
default_executable: job_boss
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|