From f14847efa545762414bf3eef13c71c7c34483f65 Mon Sep 17 00:00:00 2001 From: Hao Liu Date: Mon, 27 Feb 2023 16:24:35 -0500 Subject: [PATCH] add handling for job call back status 'idle_timeout' Co-Authored-By: Gabriel Muniz --- awx/main/tasks/jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/tasks/jobs.py b/awx/main/tasks/jobs.py index 0a9e7f59755b..c4f5d528dec4 100644 --- a/awx/main/tasks/jobs.py +++ b/awx/main/tasks/jobs.py @@ -611,9 +611,9 @@ def run(self, pk, **kwargs): status = res.status rc = res.rc - if status in ('timeout', 'error'): + if status in ('timeout', 'idle_timeout', 'error'): self.runner_callback.delay_update(skip_if_already_set=True, job_explanation=f"Job terminated due to {status}") - if status == 'timeout': + if status in ('timeout', 'idle_timeout'): status = 'failed' elif status == 'canceled': self.instance = self.update_model(pk)