2
設置resque間隔如果我部署到Heroku的,並要設置我的resque間隔,我怎麼能夠做到這與resque.rake文件看起來像以下:在Heroku
# any chance to put that "Interval=0.1" in here?
task "resque:setup" => :environment do
ENV['QUEUE'] = '*'
end
task "jobs:work" => "resque:work"
不連的Heroku支付注意間隔? (因爲它需要時間,現在約15秒,以識別在heroku隊列中的工作) 謝謝
(設置:紅寶石1.9.2,鐵軌3.0.1,heroku雪松堆棧,resque,hirefire-寶石)
這是正確的'resque \ tasks.rb',任務都使用這種方法開始:'worker.work(ENV [ '間隔'] || 5 )' – sameers 2014-01-30 19:47:16