Small refactoring in engine, task handler and workflow utils

* Renaming methods in task_handler
* Deleted unused method in workflow/utils.py
* Made signature of on_task_state_change more consistent with other
  methods
* Other minor things

Change-Id: Iaa83d3cdbd1836366401cb5558f194181b421511
This commit is contained in:
Renat Akhmerov
2015-03-30 18:32:58 +06:00
parent ea1187825c
commit 22ce7af298
8 changed files with 41 additions and 44 deletions

View File

@@ -106,7 +106,7 @@ class WorkflowController(object):
# Add all tasks in IDLE state.
idle_tasks = wf_utils.find_tasks_with_state(self.wf_ex, states.IDLE)
return [commands.RunExistentTask(t) for t in idle_tasks]
return [commands.RunExistingTask(t) for t in idle_tasks]
def _is_paused_or_completed(self):
return states.is_paused_or_completed(self.wf_ex.state)