Reduce spec parsing some more

This removes even more parsing of specification, both for workflow and
task, during a workflow execution.

Related-Bug: #1541786
Change-Id: Ib400308fabd6d62a061767956f4023b2b712e60f
This commit is contained in:
Thomas Herve
2016-03-15 13:51:23 +01:00
parent 8a2d4b29d7
commit 1cdf79f44c
5 changed files with 52 additions and 50 deletions

View File

@@ -19,15 +19,12 @@ from mistral.engine import task_handler
from mistral import exceptions as exc
from mistral.services import scheduler
from mistral.utils import wf_trace
from mistral.workbook import parser as spec_parser
from mistral.workflow import data_flow
from mistral.workflow import states
from mistral.workflow import utils as wf_utils
def succeed_workflow(wf_ex, final_context, state_info=None):
wf_spec = spec_parser.get_workflow_spec(wf_ex.spec)
def succeed_workflow(wf_ex, final_context, wf_spec, state_info=None):
# Fail workflow if output is not successfully evaluated.
try:
wf_ex.output = data_flow.evaluate_workflow_output(