Process Status Working

This commit is contained in:
Luis Fernando Molina committed 2020-03-20 13:46:41 +01:00
1 parent 8b9bd95fd9
commit f46cee4e55
4 files changed
+16 -6

No files matched your search

+4 -2
View File
@@ -676,6 +676,7 @@
clearTimeout(nextLoopTimeoutHandle);
clearTimeout(checkLoopHealthHandle);
bot.enableCheckLoopHealth = false;
processStopped()
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
@@ -812,11 +813,12 @@
}
}
function processHeartBeat(processingDate, percentage) {
function processHeartBeat(processingDate, percentage, status) {
let event = {
seconds: (new Date()).getSeconds(),
processingDate: processingDate,
percentage: percentage
percentage: percentage,
status: status
}
global.SYSTEM_EVENT_HANDLER.raiseEvent(bot.processKey, 'Heartbeat', event)
}