简体   繁体   中英

Rails3: Logs show crash on `rake jobs:work`

My Rails logs (pulled from Heroku) keep showing the app trying to run

rake jobs:work

but I'm not running Delayed Job. (Not that I can remember).

Is there another reason Rails would run rake jobs:work? Where should I look for it in the app files?

Here's the error lines

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

Thanks

我不确定为什么会这样,但是我想您可以按比例缩小Heroku上的工作人员,以防止再次发生:

heroku scale worker=0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM