Tom*_*m A 1 python scheduler heroku
所以我只是将我的twitter机器人推送到Heroku,并设置在半小时内使用Heroku调度程序插件每小时运行一次.但是,无论出于何种原因,它每10分钟运行一次.这是调度程序的错误吗?以下是调度程序成功运行时的日志摘录,然后十分钟后再次尝试运行它:
2013-01-30T19:30:20+00:00 heroku[scheduler.4875]: Starting process with command `python ff7ebooks.py`
2013-01-30T19:30:21+00:00 heroku[scheduler.4875]: State changed from starting to up
2013-01-30T19:30:24+00:00 heroku[scheduler.4875]: Process exited with status 0
2013-01-30T19:30:24+00:00 heroku[scheduler.4875]: State changed from up to complete
2013-01-30T19:34:34+00:00 heroku[web.1]: State changed from crashed to starting
2013-01-30T19:34:42+00:00 heroku[web.1]: Starting process with command `python ff7ebooks.py`
2013-01-30T19:34:44+00:00 heroku[web.1]: Process exited with status 0
2013-01-30T19:34:44+00:00 heroku[web.1]: State changed from starting to crashed
Run Code Online (Sandbox Code Playgroud)
我可以提供任何人需要的任何信息来帮助我诊断这个问题.[web.1]日志消息每隔几分钟重复一次.我不想向我的粉丝发送垃圾邮件.
如果其他人有这个问题,我想出来了.我启用了调度程序,然后分配了0个dynos,这样它只能在计划运行时分配一个Heroku dyno.出于某种原因,它一直在运行我的流程(我的假设是)Twitter只让它每隔几分钟连接到一个套接字,导致零星的推文.
| 归档时间: |
|
| 查看次数: |
1213 次 |
| 最近记录: |