Rails3:日志显示“rake jobs:work”崩溃

时间:2011-12-02 19:53:52

标签: ruby-on-rails ruby-on-rails-3 rake

My Rails日志(从Heroku中提取)继续显示试图运行的应用

佣金工作:工作

但我没有运行延迟工作。 (不是我记得)。

还有另一个原因Rails会运行佣金工作吗?工作?我应该在app文件中找到它?

这是错误行

2011-12-02T19:40:27+00:00 heroku[worker.2]: State changed from crashed to created
2011-12-02T19:40:27+00:00 heroku[worker.2]: State changed from created to starting
2011-12-02T19:40:30+00:00 heroku[worker.2]: Starting process with command `rake jobs:work`
2011-12-02T19:40:30+00:00 app[worker.2]: (in /app)
2011-12-02T19:40:31+00:00 heroku[worker.2]: State changed from starting to up
2011-12-02T19:40:31+00:00 app[worker.2]: rake aborted!
2011-12-02T19:40:31+00:00 heroku[worker.2]: Process exited
2011-12-02T19:40:32+00:00 heroku[worker.2]: State changed from up to crashed
2011-12-02T19:49:04+00:00 heroku[worker.1]: State changed from created to starting
2011-12-02T19:49:07+00:00 heroku[worker.1]: Starting process with command `rake jobs:work`
2011-12-02T19:49:07+00:00 app[worker.1]: (in /app)
2011-12-02T19:49:07+00:00 heroku[worker.1]: State changed from starting to up

由于

1 个答案:

答案 0 :(得分:0)

我不确定为什么会这样,但我想你可以缩小Heroku的工作人员以防止它再次发生:

heroku scale worker=0