Stop gracefully improved

This commit is contained in:
Luis Fernando Molina committed 2020-04-24 13:39:31 +02:00
1 parent fe537dff3b
commit 5a2c317e5e
3 files changed
+18

No files matched your search

+6
View File
@@ -288,6 +288,12 @@
switch (err.result) {
case global.DEFAULT_OK_RESPONSE.result: {
logger.write(MODULE_NAME, "[INFO] run -> loop -> startProcessExecutionEvents -> onStarted -> Execution finished well.");
if (global.STOP_TASK_GRACEFULLY === true) {
loopControl()
return
}
initializeStatusDependencies();
return;
}