Skip to content
Snippets Groups Projects
Commit 359ef60b authored by Chris Hines's avatar Chris Hines
Browse files

pass more slurm messages back to the web interface

parent e65dd81b
No related branches found
No related tags found
4 merge requests!77Revert "disable agressive kill and restart",!35Dev,!22Dev,!20Dev
Pipeline #10240 passed
......@@ -391,7 +391,9 @@ class JobSubmit(Resource):
except SshCtrlException as e:
#return json.dumps({'message':"We're having difficultly contacting {}. We failed with the message {}".format(params['identity']['site']['host'],e)}), 400
#flask_restful.abort(400,message="We're having difficultly contacting {}. We failed with the message {}".format(params['identity']['site']['host'],e))
return apiabort(400,message="We're having difficultly contacting {}. We failed with the message {}".format(params['identity']['site']['host'],e))
return apiabort(400, message="We're having difficultly contacting {}. We failed with the message {}".format(params['identity']['site']['host'],e))
except SshExecException as e:
return apiabort(400, message="{}".format(e))
if not (res['stderr'] == '' or res['stderr'] is None or res['stderr'] == b''):
#return json.dumps({'message':res['stderr'].decode()}), 400
#flask_restful.abort(400, message=res['stderr'].decode())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment