mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Set default value is 0 for idle_timeout
This commit is contained in:
parent
aa682fa2c9
commit
530977d6b3
@ -412,9 +412,12 @@ register(
|
||||
'DEFAULT_JOB_IDLE_TIMEOUT',
|
||||
field_class=fields.IntegerField,
|
||||
min_value=0,
|
||||
default=600,
|
||||
default=0,
|
||||
label=_('Default Job Idle Timeout'),
|
||||
help_text=_('If no output is detected from ansible in this number of seconds the execution will be terminated.'),
|
||||
help_text=_(
|
||||
'If no output is detected from ansible in this number of seconds the execution will be terminated. '
|
||||
'Use value of 0 to used default idle_timeout is 600s.'
|
||||
),
|
||||
category=_('Jobs'),
|
||||
category_slug='jobs',
|
||||
unit=_('seconds'),
|
||||
|
||||
@ -1365,11 +1365,13 @@ 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,
|
||||
},
|
||||
}
|
||||
|
||||
if settings.DEFAULT_JOB_IDLE_TIMEOUT > 0:
|
||||
params['settings']['idle_timeout'] = settings.DEFAULT_JOB_IDLE_TIMEOUT
|
||||
|
||||
if isinstance(self.instance, AdHocCommand):
|
||||
params['module'] = self.build_module_name(self.instance)
|
||||
params['module_args'] = self.build_module_args(self.instance)
|
||||
|
||||
@ -64,7 +64,7 @@ describe('<JobsDetail />', () => {
|
||||
);
|
||||
assertDetail(wrapper, 'Maximum Scheduled Jobs', '10');
|
||||
assertDetail(wrapper, 'Default Job Timeout', '0 seconds');
|
||||
assertDetail(wrapper, 'Default Job Idle Timeout', '600 seconds');
|
||||
assertDetail(wrapper, 'Default Job Idle Timeout', '0 seconds');
|
||||
assertDetail(wrapper, 'Default Inventory Update Timeout', '0 seconds');
|
||||
assertDetail(wrapper, 'Default Project Update Timeout', '0 seconds');
|
||||
assertDetail(wrapper, 'Per-Host Ansible Fact Cache Timeout', '0 seconds');
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
"AWX_TASK_ENV": {},
|
||||
"DEFAULT_INVENTORY_UPDATE_TIMEOUT": 0,
|
||||
"DEFAULT_JOB_TIMEOUT": 0,
|
||||
"DEFAULT_JOB_IDLE_TIMEOUT": 600,
|
||||
"DEFAULT_JOB_IDLE_TIMEOUT": 0,
|
||||
"DEFAULT_PROJECT_UPDATE_TIMEOUT": 0,
|
||||
"GALAXY_IGNORE_CERTS": false,
|
||||
"MAX_FORKS": 200,
|
||||
|
||||
@ -344,12 +344,12 @@
|
||||
"type": "integer",
|
||||
"required": false,
|
||||
"label": "Default Job Idle Timeout",
|
||||
"help_text": "If no output is detected from ansible in this number of seconds the execution will be terminated.",
|
||||
"help_text": "If no output is detected from ansible in this number of seconds the execution will be terminated. Use value of 0 to used default idle_timeout is 600s.",
|
||||
"min_value": 0,
|
||||
"category": "Jobs",
|
||||
"category_slug": "jobs",
|
||||
"unit": "seconds",
|
||||
"default": 600
|
||||
"default": 0
|
||||
},
|
||||
"DEFAULT_INVENTORY_UPDATE_TIMEOUT": {
|
||||
"type": "integer",
|
||||
@ -4001,7 +4001,7 @@
|
||||
"DEFAULT_JOB_IDLE_TIMEOUT": {
|
||||
"type": "integer",
|
||||
"label": "Default Job Idle Timeout",
|
||||
"help_text": "If no output is detected from ansible in this number of seconds the execution will be terminated.",
|
||||
"help_text": "If no output is detected from ansible in this number of seconds the execution will be terminated. Use value of 0 to used default idle_timeout is 600s.",
|
||||
"min_value": 0,
|
||||
"category": "Jobs",
|
||||
"category_slug": "jobs",
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
"SCHEDULE_MAX_JOBS":10,
|
||||
"AWX_ANSIBLE_CALLBACK_PLUGINS":[],
|
||||
"DEFAULT_JOB_TIMEOUT":0,
|
||||
"DEFAULT_JOB_IDLE_TIMEOUT":600,
|
||||
"DEFAULT_JOB_IDLE_TIMEOUT":0,
|
||||
"DEFAULT_INVENTORY_UPDATE_TIMEOUT":0,
|
||||
"DEFAULT_PROJECT_UPDATE_TIMEOUT":0,
|
||||
"ANSIBLE_FACT_CACHE_TIMEOUT":0,
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
"SCHEDULE_MAX_JOBS": 10,
|
||||
"AWX_ANSIBLE_CALLBACK_PLUGINS": [],
|
||||
"DEFAULT_JOB_TIMEOUT": 0,
|
||||
"DEFAULT_JOB_IDLE_TIMEOUT": 600,
|
||||
"DEFAULT_JOB_IDLE_TIMEOUT": 0,
|
||||
"DEFAULT_INVENTORY_UPDATE_TIMEOUT": 0,
|
||||
"DEFAULT_PROJECT_UPDATE_TIMEOUT": 0,
|
||||
"ANSIBLE_FACT_CACHE_TIMEOUT": 0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user