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 #156: ARIA-278 remove core tasks
Date Tue, 20 Jun 2017 12:10:50 GMT
Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/156#discussion_r122949389
  
    --- Diff: aria/orchestrator/workflow_runner.py ---
    @@ -80,15 +80,19 @@ def __init__(self, workflow_name, service_id, inputs,
                 task_max_attempts=task_max_attempts,
                 task_retry_interval=task_retry_interval)
     
    +        # Set default executor and kwargs
    +        executor = executor or ProcessExecutor(plugin_manager=plugin_manager)
    +
             # 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=workflow_context, **execution_inputs_dict)
     
    -        executor = executor or ProcessExecutor(plugin_manager=plugin_manager)
    -        self._engine = Engine(
    -            executor=executor,
    -            workflow_context=workflow_context,
    -            tasks_graph=self._tasks_graph)
    +        self._tasks_graph = workflow_fn(ctx=self._workflow_context, **execution_inputs_dict)
    +        engine.construct_execution_tasks(self.execution, self._tasks_graph, executor.__class__)
    +
    +        # Update the state
    +        self._model_storage.execution.update(execution)
    +
    +        self._engine = engine.Engine(default_executor=executor)
    --- End diff --
    
    executors=(executor, )


---
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