Skip to content

Commit

Permalink
Update handles.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ttedeschi authored Jul 8, 2024
1 parent be87f54 commit 5426e0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,7 @@ def SubmitHandler():
"PodJID": []
}

#try:
if True:
try:
with open(
InterLinkConfigInst["DataRootFolder"] +
pod["metadata"]["name"] + "-" + pod["metadata"]["uid"] + ".jid",
Expand All @@ -556,8 +555,7 @@ def SubmitHandler():
resp["PodUID"] = pod["metadata"]["uid"]
resp["PodJID"] = out_jid
return json.dumps(resp), 200
#except Exception as e:
else:
except Exception as e:
logging.error(f"Unable to read JID from file:{e}")
return "Something went wrong in job submission", 500

Expand Down

0 comments on commit 5426e0f

Please sign in to comment.