[ 
https://issues.apache.org/jira/browse/ARIA-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15994879#comment-15994879
 ] 

ASF GitHub Bot commented on ARIA-163:
-------------------------------------

Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/117#discussion_r114537810
  
    --- Diff: aria/orchestrator/workflows/core/translation.py ---
    @@ -48,21 +49,22 @@ def build_execution_graph(
                 default=[start_task])
     
             if isinstance(api_task, api.task.OperationTask):
    -            # Add the task an the dependencies
    -            operation_task = core_task.OperationTask(api_task)
    +            if api_task.is_stub:
    +                operation_task = core_task.OperationTask(api_task)
    +            else:
    +                operation_task = core_task.OperationTask(api_task, 
executor=executor)
                 _add_task_and_dependencies(execution_graph, operation_task, 
operation_dependencies)
    +
             elif isinstance(api_task, api.task.WorkflowTask):
                 # Build the graph recursively while adding start and end 
markers
                 build_execution_graph(
                     task_graph=api_task,
                     execution_graph=execution_graph,
    +                executor=executor,
                     start_cls=core_task.StartSubWorkflowTask,
                     end_cls=core_task.EndSubWorkflowTask,
                     depends_on=operation_dependencies
                 )
    -        elif isinstance(api_task, api.task.StubTask):
    --- End diff --
    
    undelete


> Update node state for stub tasks
> --------------------------------
>
>                 Key: ARIA-163
>                 URL: https://issues.apache.org/jira/browse/ARIA-163
>             Project: AriaTosca
>          Issue Type: Story
>    Affects Versions: 0.1.0
>            Reporter: Maxim Orlov
>            Assignee: Maxim Orlov
>
> Currently each node that has no implementation for an operation, has its 
> operations labeled a stub tasks. Those stub tasks aren't run through the 
> normal path of the workflow engine, and thus no update to the state of the 
> node is being done. this should be fixed 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to