Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Redhat openshift-Cron Runtime-Cron执行的时间是否有默认时间_Cron_Redhat_Openshift - Fatal编程技术网

Redhat openshift-Cron Runtime-Cron执行的时间是否有默认时间

Redhat openshift-Cron Runtime-Cron执行的时间是否有默认时间,cron,redhat,openshift,Cron,Redhat,Openshift,Redhat openshift上的Cron在几分钟后被SIGTERM取消 cron任务的执行时间是否有默认超时? 如果是,如何使长时间运行的任务工作?是的,在Redhat openshift上执行cron任务的顶级脚本上,显然有一个默认超时时间5分钟 解决方案是使用“nohup”让长时间运行的任务正常工作 例如: 文件openshift/cron/minutely/task1- nohup /path-to/some-other-script > $OPENSHIFT_LOG_DIR/l

Redhat openshift上的Cron在几分钟后被SIGTERM取消

cron任务的执行时间是否有默认超时?
如果是,如何使长时间运行的任务工作?

是的,在Redhat openshift上执行cron任务的顶级脚本上,显然有一个默认超时时间5分钟

解决方案是使用“nohup”让长时间运行的任务正常工作

例如:

文件openshift/cron/minutely/task1-

nohup /path-to/some-other-script > $OPENSHIFT_LOG_DIR/logfile 2>&1 &