ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIA-163) Update node state for stub tasks
Date Wed, 03 May 2017 13:39:04 GMT

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

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_r114536595
  
    --- Diff: aria/orchestrator/workflows/core/task.py ---
    @@ -108,15 +119,18 @@ class OperationTask(BaseTask):
         """
         Operation task
         """
    +    def __init__(self, api_task, executor=None, *args, **kwargs):
    +        # If no executor is provided, we defer that this is a stub task which does not
need to be
    +        # executed.
    +        super(OperationTask, self).__init__(
    +            id=api_task.id, executor=executor or base.EmptyOperationExecutor(), *args,
**kwargs)
     
    -    def __init__(self, api_task, *args, **kwargs):
    -        super(OperationTask, self).__init__(id=api_task.id, **kwargs)
             self._workflow_context = api_task._workflow_context
             self.interface_name = api_task.interface_name
             self.operation_name = api_task.operation_name
             model_storage = api_task._workflow_context.model
    -        plugin = api_task.plugin
     
    +        # This currently signal that this is a stub task
    --- End diff --
    
    remove


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

Mime
View raw message