mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 14:39:26 -02:30
Merge pull request #11617 from AlanCoding/task_job_id
Fix error on timeout with non-job types
This commit is contained in:
@@ -770,7 +770,7 @@ class BaseTask(object):
|
|||||||
|
|
||||||
extra_update_fields['job_explanation'] = self.instance.job_explanation
|
extra_update_fields['job_explanation'] = self.instance.job_explanation
|
||||||
# ensure failure notification sends even if playbook_on_stats event is not triggered
|
# ensure failure notification sends even if playbook_on_stats event is not triggered
|
||||||
handle_success_and_failure_notifications.apply_async([self.instance.job.id])
|
handle_success_and_failure_notifications.apply_async([self.instance.id])
|
||||||
|
|
||||||
except ReceptorNodeNotFound as exc:
|
except ReceptorNodeNotFound as exc:
|
||||||
extra_update_fields['job_explanation'] = str(exc)
|
extra_update_fields['job_explanation'] = str(exc)
|
||||||
|
|||||||
Reference in New Issue
Block a user