Skip to content

Commit

Permalink
Merge pull request #107 from InfuseAI/bug/fix-list-runs-without-endtime
Browse files Browse the repository at this point in the history
Fix null endTime when run status is not finished
  • Loading branch information
ctiml authored Dec 29, 2022
2 parents cc51a72 + d6c6803 commit 62ad7a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion primehub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ def list_runs(self, experiment_name: str):
'experimentId': r['info']['experimentId'],
'status': r['info']['status'],
'startTime': timestamp_to_isoformat(r['info']['startTime']),
'endTime': timestamp_to_isoformat(r['info']['endTime']),
}
if r['info'].get('endTime'):
m['endTime'] = timestamp_to_isoformat(r['info']['endTime'])
yield m
return results

Expand Down

0 comments on commit 62ad7a5

Please sign in to comment.