[
https://issues.apache.org/jira/browse/ARIA-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15994872#comment-15994872
]
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_r114537108
--- Diff: aria/orchestrator/workflows/core/task.py ---
@@ -130,15 +144,18 @@ def __init__(self, api_task, *args, **kwargs):
task_model = create_task_model(
name=api_task.name,
- implementation=api_task.implementation,
actor=api_task.actor,
- inputs=api_task.inputs,
status=base_task_model.PENDING,
max_attempts=api_task.max_attempts,
retry_interval=api_task.retry_interval,
ignore_failure=api_task.ignore_failure,
- plugin=plugin,
- execution=self._workflow_context.execution
+ execution=self._workflow_context.execution,
+
+ # Only non-stub tasks have these fields
+ plugin=getattr(api_task, 'plugin', None),
--- End diff --
update the api_task
> 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)