Fix flow unit tests

This commit is contained in:
Nick O'Leary
2022-06-29 11:41:19 +01:00
parent 7580f7491a
commit b59a3b15f3
2 changed files with 11 additions and 60 deletions

View File

@@ -322,7 +322,10 @@ async function start(type,diff,muteLog,isDeploy) {
return;
}
const runtimeState = settings.get('runtimeFlowState') || 'start'
let runtimeState
try {
runtimeState = settings.get('runtimeFlowState') || 'start'
} catch (err) {}
if (runtimeState === 'stop') {
log.info(log._("nodes.flows.stopped-flows"));
events.emit("runtime-event",{id:"runtime-state",payload:{ state: 'stop', deploy:isDeploy },retain:true});