在我的本地机器上,我可以做到
QUEUES=a,b,c,d rake resque:work
它按顺序处理这些队列。但是,在Heroku Cedar上我将它添加到我的procfile:
worker: QUEUES=a,b,c,d exec bundle exec rake resque:work
它在部署时崩溃了应用程序。我可能会遗漏一些愚蠢的东西,但我很难过。
PS我使用exec为命令添加前缀,因为resque没有正确减少工作人员数量的错误。
答案 0 :(得分:4)
您不应该需要初始exec
。条目应如下所示:
worker: bundle exec rake resque:work QUEUE=a,b,c,d
使用@ hone's fork在戒烟时正确清理工人。在您的Gemfile中:
gem 'resque', git: 'https://github.com/hone/resque.git', branch: 'heroku', require: 'resque/server'