【发布时间】:2011-12-03 08:31:30
【问题描述】:
我的 Rails 日志(从 Heroku 中提取)不断显示应用程序正在尝试运行
找工作:工作
但我没有运行延迟作业。 (我不记得了)。
Rails 运行 rake jobs:work 还有其他原因吗?我应该在应用文件中的哪个位置查找它?
这是错误行
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
谢谢
【问题讨论】:
-
您是在运行 heroku cron (devcenter.heroku.com/articles/cron) 还是延迟工作的工作人员? (devcenter.heroku.com/articles/delayed-job)
-
是的,我正在运行 cron,每小时一次。不过,该错误似乎发生在每小时 cron 作业之外。 (我的 cron 在 :03 小时后运行,并且此错误始终运行。)
标签: ruby-on-rails ruby-on-rails-3 rake