OPENSHIFT Cron工作刚刚停止工作 [英] OPENSHIFT Cron job just stop working

查看:79
本文介绍了OPENSHIFT Cron工作刚刚停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个每小时的cron工作,已经使用Openshift自由齿轮运行了将近一年,而且没有问题.但是过去2天,cron作业自动停止运行.我一直在四处搜寻,但仍然找不到出了什么问题.这是我迄今为止检查/完成的内容

I have an hourly cron job which has been running in Openshift free gear for almost a year and has been no problem. But the past 2 days, cron job stops running automatically. I have been googling around and still cannot find what went wrong. Here are what I have checked/done to date

  • 我用来保持站点正常运行的服务仍然正常运行.因此,这不是闲置的情况.
  • 强制重新启动应用程序. Cron作业仍然没有像以前那样自动启动.
  • 伪造对cron脚本文件的更改,然后推送到Openshift.仍然没有解决这个问题.
  • 日志文件看起来还可以

  • the service I use to keep the site alive is still up and running as normal. So it is not a case of being idle.
  • force restart the app. Cron job still not started automatically as it used to.
  • fake changes to cron script file and push to Openshift. Still not fixed this.
  • log files looks ok

2015年5月4日星期一5:13:01:开始每小时的cron运行

Mon May 4 13:01:07 EDT 2015: START hourly cron run

2015年5月4日星期一5:01:29:结束每小时的cron运行-status = 0

Mon May 4 13:01:29 EDT 2015: END hourly cron run - status=0

关于在应用程序无更改的情况下为何仅停止工作的任何建议或指示.谢谢.

Any advice or pointer as to why it just stop working when there is no change to the app. Thank you.

推荐答案

cron作业仍未自动启动.我最终卸下了Cron墨盒,然后再次添加了墨盒.然后,它现在可以正常工作了.

The cron job still has not started automatically. I ended up removing Cron cartridge and add the cartridge back again. Then it is now working as normal.

rhc cartridge remove cron -a <app>
rhc cartridge add cron -a <app>

谢谢.

这篇关于OPENSHIFT Cron工作刚刚停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆