mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
Fix DELETE 500 KeyError due to eventless model events (#14172)
This commit is contained in:
@@ -661,7 +661,11 @@ class WorkflowJob(UnifiedJob, WorkflowJobOptions, SurveyJobMixin, JobNotificatio
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def event_processing_finished(self):
|
def event_processing_finished(self):
|
||||||
return True
|
return True # workflow jobs do not have events
|
||||||
|
|
||||||
|
@property
|
||||||
|
def has_unpartitioned_events(self):
|
||||||
|
return False # workflow jobs do not have events
|
||||||
|
|
||||||
def _get_parent_field_name(self):
|
def _get_parent_field_name(self):
|
||||||
if self.job_template_id:
|
if self.job_template_id:
|
||||||
@@ -914,7 +918,11 @@ class WorkflowApproval(UnifiedJob, JobNotificationMixin):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def event_processing_finished(self):
|
def event_processing_finished(self):
|
||||||
return True
|
return True # approval jobs do not have events
|
||||||
|
|
||||||
|
@property
|
||||||
|
def has_unpartitioned_events(self):
|
||||||
|
return False # approval jobs do not have events
|
||||||
|
|
||||||
def send_approval_notification(self, approval_status):
|
def send_approval_notification(self, approval_status):
|
||||||
from awx.main.tasks.system import send_notifications # avoid circular import
|
from awx.main.tasks.system import send_notifications # avoid circular import
|
||||||
|
|||||||
Reference in New Issue
Block a user