ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxmrlv <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #158: ARIA-236 Resumable workflow execution...
Date Wed, 21 Jun 2017 13:58:33 GMT
Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/158#discussion_r123252174
  
    --- Diff: aria/orchestrator/workflow_runner.py ---
    @@ -86,12 +89,17 @@ def __init__(self, workflow_name, service_id, inputs,
             # transforming the execution inputs to dict, to pass them to the workflow function
             execution_inputs_dict = dict(inp.unwrapped for inp in self.execution.inputs.values())
     
    -        self._tasks_graph = workflow_fn(ctx=self._workflow_context, **execution_inputs_dict)
    -        compile.create_execution_tasks(
    -            self._workflow_context, self._tasks_graph, executor.__class__)
    +        if execution_id is None:
    +            # Not an existing execution
    +            workflow_fn = self._get_workflow_fn()
    +            tasks_graph = workflow_fn(ctx=self._workflow_context, **execution_inputs_dict)
    +            compile.create_execution_tasks(self._workflow_context, tasks_graph, executor.__class__)
     
             self._engine = engine.Engine(executors={executor.__class__: executor})
     
    +        if workflow_name is None:
    +            self._engine.resume_execution(self._workflow_context)
    --- End diff --
    
    move to function


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message