diff --git a/data/database.py b/data/database.py index 3c5fcf422..3f76a8668 100644 --- a/data/database.py +++ b/data/database.py @@ -215,6 +215,8 @@ class RepositoryBuild(BaseModel): resource_key = CharField() tag = CharField() phase = CharField(default='waiting') + started = DateTimeField(default=datetime.now) + class QueueItem(BaseModel): diff --git a/endpoints/api.py b/endpoints/api.py index 49bdc3060..de4156e25 100644 --- a/endpoints/api.py +++ b/endpoints/api.py @@ -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, }