[
https://issues.apache.org/jira/browse/ARIA-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15943193#comment-15943193
]
ASF GitHub Bot commented on ARIA-126:
-------------------------------------
Github user AviaE commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/83#discussion_r108060045
--- Diff: aria/orchestrator/workflows/core/events_handler.py ---
@@ -118,3 +131,14 @@ def _workflow_cancelling(workflow_context, *args,
**kwargs):
return _workflow_cancelled(workflow_context=workflow_context)
execution.status = execution.CANCELLING
workflow_context.execution = execution
+
+
+def _update_node_state(task, transitional=False):
+ match =
re.search('^(?:tosca.interfaces.node.lifecycle.Standard|Standard):(\S+)@node',
+ task.context.name)
+ if match:
+ node = task.runs_on
+ state = node.determine_state(match.group(1), transitional)
--- End diff --
op_name=
> Update state of nodes during normative lifecycle execution
> ----------------------------------------------------------
>
> Key: ARIA-126
> URL: https://issues.apache.org/jira/browse/ARIA-126
> Project: AriaTosca
> Issue Type: Story
> Reporter: Avia Efrat
> Assignee: Avia Efrat
>
> Update a node's state while preforming tasks that reflect changes to its
> state.
> Currently, this will be hardcoded specifically for lifecycle operations, i.e.
> `created`, `configured`, `started` etc.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)