ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dankilman <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #18: ARIA-11 Add cancel workflow execution ...
Date Thu, 10 Nov 2016 11:36:16 GMT
Github user dankilman commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/18#discussion_r87371652
  
    --- Diff: aria/events/builtin_event_handler.py ---
    @@ -99,3 +94,22 @@ def _workflow_succeeded(workflow_context, *args, **kwargs):
         execution.status = execution.TERMINATED
         execution.ended_at = datetime.utcnow()
         workflow_context.execution = execution
    +
    +
    +@on_cancel_workflow_signal.connect
    +def _workflow_cancelled(workflow_context, *args, **kwargs):
    +    execution = workflow_context.execution
    +    execution.status = execution.CANCELLED
    +    execution.ended_at = datetime.utcnow()
    --- End diff --
    
    test


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