insque 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/insque/version.rb +1 -1
- data/lib/tasks/insque.rake +1 -1
- metadata +1 -1
data/lib/insque/version.rb
CHANGED
data/lib/tasks/insque.rake
CHANGED
@@ -2,7 +2,7 @@ namespace :insque do
|
|
2
2
|
desc 'Starts insque listener and janitor'
|
3
3
|
task :run => :environment do
|
4
4
|
trap('TERM') { puts "SIGTERM"; exit 0 }
|
5
|
-
threads =
|
5
|
+
threads = []
|
6
6
|
threads << Thread.new() { Insque.listen }
|
7
7
|
threads << Thread.new() { Insque.janitor }
|
8
8
|
threads.each {|t| t.join }
|