在heroku上设置resque-Interval
如果我部署到 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)
If I deploy to heroku and want to set my resque interval, how can I accomplish that with a resque.rake file that looks like the following:
# any chance to put that "Interval=0.1" in here?
task "resque:setup" => :environment do
ENV['QUEUE'] = '*'
end
task "jobs:work" => "resque:work"
does heroku even pay attention to the interval? (as it takes ages, ca. 15 seconds right now, to recognize a job in the queue on heroku)
Thanks
(Setup: ruby 1.9.2, rails 3.0.1, heroku cedar stack, resque, hirefire-gem)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有点晚了,但 INTERVAL 看起来像是一个环境变量。
应该能够做到:
A bit late to the game here, but INTERVAL looks like an environmental variable.
Should be able to do: