Fixing finishing workflow in case DELAYED task state

* If we have 2 parallel tasks and one of these in the
   DELAYED state, workflow incorrectly finishes and DELAYED state is
   not taken to account.

Closes-Bug: #1422621

Change-Id: I187a61117f5ad94c6f4ab33fbc750350f8adef0b
This commit is contained in:
Nikolay Mahotkin
2015-03-02 18:30:06 +03:00
parent e120b42cf0
commit 4d08db0f42
3 changed files with 34 additions and 1 deletions

View File

@@ -110,7 +110,7 @@ class WorkflowHandler(object):
return []
if not cmds and not wf_utils.find_running_tasks(self.wf_ex):
if not cmds and not wf_utils.find_incomplete_tasks(self.wf_ex):
# If there are no running tasks at this point we can conclude that
# the workflow has finished.
if not self.is_paused_or_completed():