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)