我很好奇用这个在Heroku上自动缩放工人的想法。
delayed job branch
. 唯一的问题是我不明白为什么它不起作用。
到目前为止,我得到了:
我已将分支安装为插件。
添加了两行配置,如中所述
branch comments
:
Delayed::Job.destroy_failed_jobs = false
silence_warnings do
Delayed::Job.const_set("MAX_ATTEMPTS", 3)
Delayed::Job.const_set("MAX_RUN_TIME", 5.minutes)
Delayed::Job.auto_scale = true # < --- this
Delayed::Job.auto_scale_manager = :heroku # < --- and this
end
我还添加了一个gem-rush,正如另一个分支评论所详细描述的。
我收到错误消息:
MissingSourceFile (no such file to load -- heroku):
…我假设当我的应用程序试图与Heroku的API通信时。如何解决这个问题我还不清楚。任何建议都会非常感谢。