Skip to content

Commit 62ad7a5

Browse files
authored
Merge pull request #107 from InfuseAI/bug/fix-list-runs-without-endtime
Fix null endTime when run status is not finished
2 parents cc51a72 + d6c6803 commit 62ad7a5

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)