Sha256: e03b69f0b2d5688f263e143a13ade2df25136c334c03966b401ee19ca2b1f777
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
namespace :insque do desc 'Starts insque listener and janitor' task :run => :environment do trap('TERM') { puts "SIGTERM"; exit 0 } threads = {} threads << Thread.new() { Insque.listen } threads << Thread.new() { Insque.janitor } threads.each {|t| t.join } end desc 'Starts insque listener' task :listener => :environment do trap('TERM') { puts "SIGTERM"; exit 0 } Insque.listen end desc 'Starts insque janitor' task :janitor => :environment do trap('TERM') { puts "SIGTERM"; exit 0 } Insque.janitor end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
insque-0.3.3 | lib/tasks/insque.rake |
insque-0.3.2 | lib/tasks/insque.rake |