ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxmrlv <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #156: ARIA-278 remove core tasks
Date Tue, 20 Jun 2017 12:10:30 GMT
Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/156#discussion_r122956391
  
    --- Diff: aria/orchestrator/workflows/executor/base.py ---
    @@ -28,19 +28,20 @@ class BaseExecutor(logger.LoggerMixin):
         def _execute(self, task):
             raise NotImplementedError
     
    -    def execute(self, task):
    +    def execute(self, ctx):
             """
             Execute a task
             :param task: task to execute
             """
    -        if task.function:
    -            self._execute(task)
    -        else:
    -            # In this case the task is missing a function. This task still gets to an
    -            # executor, but since there is nothing to run, we by default simply skip
the execution
    -            # itself.
    -            self._task_started(task)
    -            self._task_succeeded(task)
    +        with ctx.track_changes:
    --- End diff --
    
    reconsider


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