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 EE57F200CD1 for ; Tue, 20 Jun 2017 14:10:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ED2AB160BE1; Tue, 20 Jun 2017 12:10:51 +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 3D083160BF5 for ; Tue, 20 Jun 2017 14:10:51 +0200 (CEST) Received: (qmail 79451 invoked by uid 500); 20 Jun 2017 12:10:50 -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 79402 invoked by uid 99); 20 Jun 2017 12:10:50 -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:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 578F1DFBDA; Tue, 20 Jun 2017 12:10:50 +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: <20170620121050.578F1DFBDA@git1-us-west.apache.org> Date: Tue, 20 Jun 2017 12:10:50 +0000 (UTC) archived-at: Tue, 20 Jun 2017 12:10:52 -0000 Github user mxmrlv commented on a diff in the pull request: https://github.com/apache/incubator-ariatosca/pull/156#discussion_r122946023 --- Diff: aria/modeling/orchestration.py --- @@ -296,30 +326,17 @@ def plugin(cls): return relationship.many_to_one(cls, 'plugin') @declared_attr - def execution(cls): - return relationship.many_to_one(cls, 'execution') - - @declared_attr def arguments(cls): return relationship.one_to_many(cls, 'argument', dict_key='name') function = Column(String) max_attempts = Column(Integer, default=1) retry_interval = Column(Float, default=0) ignore_failure = Column(Boolean, default=False) + interface_name = Column(String) + operation_name = Column(String) - # State - status = Column(Enum(*STATES, name='status'), default=PENDING) - due_at = Column(DateTime, nullable=False, index=True, default=datetime.utcnow()) - started_at = Column(DateTime, default=None) - ended_at = Column(DateTime, default=None) - attempts_count = Column(Integer, default=1) - - def has_ended(self): - return self.status in (self.SUCCESS, self.FAILED) - - def is_waiting(self): - return self.status in (self.PENDING, self.RETRYING) + stub_type = Column(Enum(*STUB_TYPES)) --- End diff -- _stub_type --- 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. ---