delayed_job_with_named_queues 2.0.7.1 → 2.0.7.2
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/lib/delayed/command.rb +2 -2
- data/lib/delayed/tasks.rb +1 -1
- metadata +5 -5
data/lib/delayed/command.rb
CHANGED
@@ -48,10 +48,10 @@ module Delayed
|
|
48
48
|
@options[:sleep_delay] = n
|
49
49
|
end
|
50
50
|
opts.on('--queues=queues', "Specify which queue DJ must look up for jobs") do |queues|
|
51
|
-
@options[:queues] = queues.split(
|
51
|
+
@options[:queues] = queues.split(/\s*,\s*/)
|
52
52
|
end
|
53
53
|
opts.on('--queue=queue', "Specify which queue DJ must look up for jobs") do |queue|
|
54
|
-
@options[:queues] =
|
54
|
+
@options[:queues] = queue.split(/\s*,\s*/)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
@args = opts.parse!(args)
|
data/lib/delayed/tasks.rb
CHANGED
@@ -10,6 +10,6 @@ namespace :jobs do
|
|
10
10
|
|
11
11
|
desc "Start a delayed_job worker."
|
12
12
|
task :work => [:merb_env, :environment] do
|
13
|
-
Delayed::Worker.new(:min_priority => ENV['MIN_PRIORITY'], :max_priority => ENV['MAX_PRIORITY'],:queues => (ENV['QUEUES'] || ENV['QUEUE'] || '').split(
|
13
|
+
Delayed::Worker.new(:min_priority => ENV['MIN_PRIORITY'], :max_priority => ENV['MAX_PRIORITY'],:queues => (ENV['QUEUES'] || ENV['QUEUE'] || '').split(/\s*,\s*/) ).start
|
14
14
|
end
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job_with_named_queues
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 119
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 7
|
10
|
-
-
|
11
|
-
version: 2.0.7.
|
10
|
+
- 2
|
11
|
+
version: 2.0.7.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Ray Walters
|
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
306
|
requirements: []
|
307
307
|
|
308
308
|
rubyforge_project:
|
309
|
-
rubygems_version: 1.
|
309
|
+
rubygems_version: 1.4.2
|
310
310
|
signing_key:
|
311
311
|
specification_version: 3
|
312
312
|
summary: Database-backed asynchronous priority queue system -- Extracted from Shopify
|