mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Merge pull request #3795 from AlanCoding/timeout_ctit
Add job timeouts to CTiT
This commit is contained in:
@@ -173,3 +173,21 @@ register(
|
|||||||
category=_('Jobs'),
|
category=_('Jobs'),
|
||||||
category_slug='jobs',
|
category_slug='jobs',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
register(
|
||||||
|
'DEFAULT_JOB_TIMEOUTS',
|
||||||
|
field_class=fields.DictField,
|
||||||
|
default={
|
||||||
|
'Job': 0,
|
||||||
|
'InventoryUpdate': 0,
|
||||||
|
'ProjectUpdate': 0,
|
||||||
|
},
|
||||||
|
label=_('Default Job Timeouts'),
|
||||||
|
help_text=_('Maximum time to allow jobs to run. Use sub-keys of Job, '
|
||||||
|
'InventoryUpdate, and ProjectUpdate to configure this value '
|
||||||
|
'for each job type. Use value of 0 to indicate that no '
|
||||||
|
'timeout should be imposed. A timeout set on an individual '
|
||||||
|
'job template will override this.'),
|
||||||
|
category=_('Jobs'),
|
||||||
|
category_slug='jobs',
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user