mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 07:27:28 -02:30
Add idle_timeout setting to job settings
This commit is contained in:
@@ -408,6 +408,18 @@ register(
|
||||
unit=_('seconds'),
|
||||
)
|
||||
|
||||
register(
|
||||
'DEFAULT_JOB_IDLE_TIMEOUT',
|
||||
field_class=fields.IntegerField,
|
||||
min_value=0,
|
||||
default=600,
|
||||
label=_('Default Job Idle Timeout'),
|
||||
help_text=_('If no output is detected from ansible in this number of seconds the execution will be terminated.'),
|
||||
category=_('Jobs'),
|
||||
category_slug='jobs',
|
||||
unit=_('seconds'),
|
||||
)
|
||||
|
||||
register(
|
||||
'DEFAULT_INVENTORY_UPDATE_TIMEOUT',
|
||||
field_class=fields.IntegerField,
|
||||
|
||||
@@ -1365,6 +1365,7 @@ class BaseTask(object):
|
||||
'envvars': env,
|
||||
'settings': {
|
||||
'job_timeout': self.get_instance_timeout(self.instance),
|
||||
'idle_timeout': settings.DEFAULT_JOB_IDLE_TIMEOUT,
|
||||
'suppress_ansible_output': True,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user