Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 79CC8200CC2 for ; Tue, 20 Jun 2017 14:10:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 77037160BEF; Tue, 20 Jun 2017 12:10:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EB64E160BF2 for ; Tue, 20 Jun 2017 14:10:30 +0200 (CEST) Received: (qmail 78476 invoked by uid 500); 20 Jun 2017 12:10:30 -0000 Mailing-List: contact commits-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list commits@ariatosca.incubator.apache.org Received: (qmail 78441 invoked by uid 99); 20 Jun 2017 12:10:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2017 12:10:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0C329DFA28; Tue, 20 Jun 2017 12:10:30 +0000 (UTC) From: mxmrlv To: commits@ariatosca.apache.org Reply-To: commits@ariatosca.apache.org References: In-Reply-To: Subject: [GitHub] incubator-ariatosca pull request #156: ARIA-278 remove core tasks Content-Type: text/plain Message-Id: <20170620121030.0C329DFA28@git1-us-west.apache.org> Date: Tue, 20 Jun 2017 12:10:30 +0000 (UTC) archived-at: Tue, 20 Jun 2017 12:10:31 -0000 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. ---