Add the start time to the repository build object and APIs.

This commit is contained in:
yackob03 2014-02-11 12:25:38 -05:00
parent dc1737e0da
commit 7f89a5b7f0
2 changed files with 3 additions and 0 deletions

View file

@ -215,6 +215,8 @@ class RepositoryBuild(BaseModel):
resource_key = CharField()
tag = CharField()
phase = CharField(default='waiting')
started = DateTimeField(default=datetime.now)
class QueueItem(BaseModel):

View file

@ -1147,6 +1147,7 @@ def build_status_view(build_obj):
return {
'id': build_obj.uuid,
'phase': build_obj.phase,
'started': build_obj.started,
'status': status,
}