Need to configure the job level timeout option for

2019-09-14 08:09发布

问题:

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



标签: rundeck