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

add a better error message when things time out

parent 360ca4dd
No related branches found
No related tags found
2 merge requests!21New css dev,!19Dev
Pipeline #7823 passed
......@@ -552,6 +552,10 @@ private httperror(errorstr: string) {
private handleAppInstanceError(job: Job, error: any) {
console.log(error);
job.connectionState=0;
if (error.status == 0) {
this.statusMsg.next('It appears we had a timeout learning about your '+job.name+'. Its possible '+job.identity.site.name+' is experiencing issues');
return;
}
if (error.error !== undefined && error.error.message !== undefined) {
this.statusMsg.next(error.error.message);
} else if (error.error !== undefined && error.error.error !== undefined) {
......
......@@ -65,6 +65,40 @@
"localbind": true,
"applist": null
},
{
"url": null,
"name": "Jupyter Lab - custom venv",
"startscript": "#!/bin/bash\n/usr/local/sv2/jupyter/jupyter_custom.sh\n",
"actions": [
{
"name": "Connect",
"paramscmd": "/usr/local/sv2/dev/jupyter/jupyter_params.py {jobid}",
"client": {"cmd": null, "redir": "?token={token}"},
"states": ["RUNNING"]
},
{
"name": "View log",
"paramscmd": "/usr/local/sv2/dev/desktop/logparams.py {jobid}",
"client": {"cmd": null, "redir": "index.html?token={token}" },
"states": ["RUNNING","Finished"]
},
{
"name": "View Usage",
"paramscmd": "/usr/local/sv2/dev/desktop/usageparams.py {jobid}",
"client": {"cmd": null, "redir": "index.html?token={token}" },
"states": ["Finished"]
},
{
"name": "Remove log",
"paramscmd": "/usr/local/sv2/dev/rmlog.py {jobid}",
"client": null,
"states": ["Finished"]
}
],
"localbind": true,
"applist": null
},
{
"url": null,
"name": "CryoSPARC",
......
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