Need to configure the job level timeout option for rundeck Job

独自空忆成欢 提交于 2019-12-12 01:43:29

问题


I am using rundeck 1.6 version and need to configure timeout option for the rundeck jobs so that when the job exceeds the timeout value, it automatically stops without going to the next step.

Thanks


回答1:


As 2.7 Rundeck support Job Timeout

Timeout You can set a maximum runtime for a job. If the runtime exceeds this value, the job will be halted (as if a user had killed it.) (Note: Timeout only affects the job if is invoked directly, not if it is used as a Job Reference.)




回答2:


On server from Rundeck installed, alter the file /etc/ssh/ssh_config to:

Host *

ServerAliveInterval 180 ServerAliveCountMax 2



来源:https://stackoverflow.com/questions/42091650/need-to-configure-the-job-level-timeout-option-for-rundeck-job

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!