Skip to content

Commit

Permalink
add handling for job call back status 'idle_timeout'
Browse files Browse the repository at this point in the history
Co-Authored-By: Gabriel Muniz <[email protected]>
  • Loading branch information
2 people authored and dmzoneill committed Feb 15, 2024
1 parent 362e11a commit f14847e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awx/main/tasks/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f14847e

Please sign in to comment.