Use Running status for jobs if the building status does not exist
@@ -280,7 +280,9 @@ class ExperimentJob(DiffModel):
@property
def started_at(self):
- status = self.statuses.filter(status=JobLifeCycle.BUILDING).first()
+ status = self.statuses.filter(status__in=JobLifeCycle.BUILDING).first()
+ if not status:
+ status = self.statuses.filter(status__in=JobLifeCycle.RUNNING).first()
if status:
return status.created_at
return None
