Skip to content
Snippets Groups Projects
Verified Commit b5c4d4d6 authored by Théo Pirkl's avatar Théo Pirkl :nail_care:
Browse files

if the supervisor is offline, well too bad

parent 5234a6f3
Branches
No related tags found
No related merge requests found
......@@ -19,8 +19,11 @@ def work(data):
except Exception as e:
logger.error("Stopped workflow because of an error.")
logger.error(e)
requests.post(url="https://" + env('SERVER_WEB_FQDN') + "/api/job/" + str(wid) + "/failed"
, verify=False)
try:
requests.post(url="https://" + env('SERVER_WEB_FQDN') + "/api/job/" + str(wid) + "/failed"
, verify=False)
except Exception as e:
pass
logger.info("Done, returning context")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment