Skip to content

Commit

Permalink
(minor simplification)
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxos committed Sep 16, 2024
1 parent 06a310b commit bd297a4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions mupifDB/restApiControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,20 +497,7 @@ def getExecutionRecord(weid):
execution['WorkflowVersion'] = -1
execution['Status'] = 'unknown'

st = r_json['status']
if st == 'Ready':
st = 'Pending'
if st == 'On-going':
st = 'Running'
if st == 'Completed':
st = 'Finished'
if st == 'Completed, to be reviewed':
st = 'Finished'
if st == 'Completed & reviewed':
st = 'Finished'
if st == 'Canceled':
st = 'Failed'
execution['Status'] = st
execution['Status'] = {'Ready':'Pending','On-going':'Running','Completed':'Finished','Completed, to be reviewed':'Finished','Completed & reviewed':'Finished','Cancelled':'Failed'}.get(r_json['status'],r_json['status'])

execution['Task_ID'] = ''
return execution
Expand Down

0 comments on commit bd297a4

Please sign in to comment.