Fix error on timeout with non-job types

This commit is contained in:
Alan Rominger 2022-01-26 17:00:59 -05:00
parent cfabbcaaf6
commit cd8d382038
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -754,7 +754,7 @@ class BaseTask(object):
extra_update_fields['job_explanation'] = self.instance.job_explanation
# 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:
extra_update_fields['job_explanation'] = str(exc)