From 3ae5a4b9a87214ada8a78ae57c9469fb922e0be3 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Thu, 27 Oct 2016 13:17:20 -0400 Subject: [PATCH] add job timeouts to CTiT --- awx/main/conf.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/awx/main/conf.py b/awx/main/conf.py index e0d16e8542..862238f3fa 100644 --- a/awx/main/conf.py +++ b/awx/main/conf.py @@ -173,3 +173,21 @@ register( category=_('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', +)