Merge "Use get_task_executions_count for any_cancels method"
This commit is contained in:
commit
5131444a62
|
@ -202,7 +202,10 @@ class WorkflowController(object):
|
||||||
|
|
||||||
:return: True if there is one or more tasks in cancelled state.
|
:return: True if there is one or more tasks in cancelled state.
|
||||||
"""
|
"""
|
||||||
return len(self._get_task_executions(state=states.CANCELLED)) > 0
|
return db_api.get_task_executions_count(
|
||||||
|
workflow_execution_id=self.wf_ex.id,
|
||||||
|
state=states.CANCELLED
|
||||||
|
) > 0
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def evaluate_workflow_final_context(self):
|
def evaluate_workflow_final_context(self):
|
||||||
|
|
Loading…
Reference in New Issue