mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
correct yaml error, better error handling
This commit is contained in:
@@ -80,7 +80,7 @@ import fileDownload from "https://cdn.skypack.dev/js-file-download@0.4.12"
|
||||
setValues(st);
|
||||
setVisible('status_url',st.status_url !== undefined,true);
|
||||
setVisible('error',st.error !== undefined,true);
|
||||
if (st.status === 'error'){
|
||||
if (st.status === 'error' || st.state === 'errored'){
|
||||
setRunning(false);
|
||||
setVisible('download',false,true);
|
||||
return;
|
||||
|
||||
@@ -65,7 +65,7 @@ function getJobStatus($pipeline,$wf=workflowName,$job=jobName){
|
||||
if (! isset($pstat['state'])){
|
||||
throw new Exception("state not set");
|
||||
}
|
||||
if ($pstat['state'] != 'created'){
|
||||
if ($pstat['state'] == 'created'){
|
||||
return $pstat;
|
||||
}
|
||||
$pipeline_id=$pstat['id'];
|
||||
|
||||
Reference in New Issue
Block a user