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:27 GMT
Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/156#discussion_r122945481
  
    --- Diff: aria/modeling/orchestration.py ---
    @@ -276,10 +289,27 @@ class TaskBase(ModelMixin):
             SUCCESS,
             FAILED,
         )
    -
         INFINITE_RETRIES = -1
     
         @declared_attr
    +    def execution(cls):
    +        return relationship.many_to_one(cls, 'execution')
    +
    +    @declared_attr
    +    def execution_fk(cls):
    +        return relationship.foreign_key('execution', nullable=True)
    +
    +    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)
    +    api_id = Column(String)
    --- End diff --
    
    _api_id


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