Add the start time to the repository build object and APIs.
This commit is contained in:
parent
dc1737e0da
commit
7f89a5b7f0
2 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,8 @@ class RepositoryBuild(BaseModel):
|
||||||
resource_key = CharField()
|
resource_key = CharField()
|
||||||
tag = CharField()
|
tag = CharField()
|
||||||
phase = CharField(default='waiting')
|
phase = CharField(default='waiting')
|
||||||
|
started = DateTimeField(default=datetime.now)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QueueItem(BaseModel):
|
class QueueItem(BaseModel):
|
||||||
|
|
|
@ -1147,6 +1147,7 @@ def build_status_view(build_obj):
|
||||||
return {
|
return {
|
||||||
'id': build_obj.uuid,
|
'id': build_obj.uuid,
|
||||||
'phase': build_obj.phase,
|
'phase': build_obj.phase,
|
||||||
|
'started': build_obj.started,
|
||||||
'status': status,
|
'status': status,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue