Commit fc03078c authored by Martin Schorb's avatar Martin Schorb
Browse files

launch call fix

parent 8beb3354
Pipeline #32733 passed with stage
in 22 seconds
......@@ -349,7 +349,16 @@ def solve_execute_gobutton(click, matchcoll, outstack, tform, stype, comp_sel, s
# populate new stack with the original resolution values
md = (renderapi.stack.get_stack_metadata(outstack, render=render, project=project, owner=owner))
try:
md = (renderapi.stack.get_stack_metadata(outstack, render=render, project=project, owner=owner))
except:
launch_store = dict()
launch_store['logfile'] = log_file
launch_store['status'] = 'error'
launch_store['id'] = '-'
launch_store['type'] = launch_jobs.runtype(comp_sel)
return False, launch_store, dash.no_update
md.stackResolutionX = orig_meta.stackResolutionX
md.stackResolutionY = orig_meta.stackResolutionY
......
......@@ -8,6 +8,8 @@ Created on Wed Nov 11 14:24:32 2020
import os
import subprocess
import dash
import params
import time
import datetime
......@@ -257,6 +259,8 @@ def cluster_status(run_state):
command += ' --format=jobid,state,node --parsable'
# commands for other cluster types go HERE
if run_state['status'] in ['cancelled','error']:
return run_state['status'], link
if cl_type in params.remote_submission.keys():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment