Skip to content

Commit d6c6803

Browse files
committed
Fix null endTime when run status is not finished
Signed-off-by: Timothy Lee <ctiml@infuseai.io>
1 parent cc51a72 commit d6c6803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

primehub/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ def list_runs(self, experiment_name: str):
226226
'experimentId': r['info']['experimentId'],
227227
'status': r['info']['status'],
228228
'startTime': timestamp_to_isoformat(r['info']['startTime']),
229-
'endTime': timestamp_to_isoformat(r['info']['endTime']),
230229
}
230+
if r['info'].get('endTime'):
231+
m['endTime'] = timestamp_to_isoformat(r['info']['endTime'])
231232
yield m
232233
return results
233234

0 commit comments

Comments
 (0)