Sha256: a0b82faa4a54a6b80dd1bc2d5464651e1e81cfd979e8cc14f6ab5906998a9f9d
Contents?: true
Size: 308 Bytes
Versions: 4
Compression:
Stored size: 308 Bytes
Contents
desc "Start multiple Resque workers using environment" task :workers => [ :environment ] do threads = [] (ENV['COUNT'] || '1').to_i.times do threads << Thread.new do system "rake environment resque:work" # XXX is better way to do this? end end threads.each { |thread| thread.join } end
Version data entries
4 entries across 4 versions & 1 rubygems