【发布时间】:2012-08-15 00:55:43
【问题描述】:
如果我部署到 heroku 并想设置我的 resque 间隔,我如何使用如下所示的 resque.rake 文件来完成此操作:
# 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 队列中的工作) 谢谢
(设置:ruby 1.9.2、rails 3.0.1、heroku cedar stack、resque、hirefire-gem)
【问题讨论】:
标签: ruby-on-rails-3 heroku resque