mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
short-circuit event_processing_finished for wf jobs
* wf jobs are a wrapper for other jobs * they do not process their own job events
This commit is contained in:
@@ -258,6 +258,10 @@ class WorkflowJobNode(WorkflowNodeBase):
|
|||||||
models.Index(fields=['identifier']),
|
models.Index(fields=['identifier']),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def event_processing_finished(self):
|
||||||
|
return True
|
||||||
|
|
||||||
def get_absolute_url(self, request=None):
|
def get_absolute_url(self, request=None):
|
||||||
return reverse('api:workflow_job_node_detail', kwargs={'pk': self.pk}, request=request)
|
return reverse('api:workflow_job_node_detail', kwargs={'pk': self.pk}, request=request)
|
||||||
|
|
||||||
@@ -620,6 +624,10 @@ class WorkflowJob(UnifiedJob, WorkflowJobOptions, SurveyJobMixin, JobNotificatio
|
|||||||
def workflow_nodes(self):
|
def workflow_nodes(self):
|
||||||
return self.workflow_job_nodes
|
return self.workflow_job_nodes
|
||||||
|
|
||||||
|
@property
|
||||||
|
def event_processing_finished(self):
|
||||||
|
return True
|
||||||
|
|
||||||
def _get_parent_field_name(self):
|
def _get_parent_field_name(self):
|
||||||
if self.job_template_id:
|
if self.job_template_id:
|
||||||
# This is a workflow job which is a container for slice jobs
|
# This is a workflow job which is a container for slice jobs
|
||||||
|
|||||||
Reference in New Issue
Block a user