From 8c93a49021fbee1881193f12edc6d58ef63eeba4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 17 Sep 2019 20:15:51 +0200 Subject: [PATCH] Stabilization Day Finished --- SystemEventHandler.js | 3 ++- TradingEngineProcessMainLoop.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/SystemEventHandler.js b/SystemEventHandler.js index 7620ca72e..f86270062 100644 --- a/SystemEventHandler.js +++ b/SystemEventHandler.js @@ -48,10 +48,11 @@ 'message', // here is where all incomming messages are processed. function (data) { ipc.log('Got a message from Superalgos Event Server: '.debug, data); - + let message = JSON.parse(data) if (message.action === 'Event Raised') { + let key if (message.callerId) { key = message.eventHandlerName + '-' + message.eventType + '-' + message.callerId diff --git a/TradingEngineProcessMainLoop.js b/TradingEngineProcessMainLoop.js index bb951436f..3eadcadf0 100644 --- a/TradingEngineProcessMainLoop.js +++ b/TradingEngineProcessMainLoop.js @@ -963,6 +963,8 @@ logger.persist(); } + global.SYSTEM_EVENT_HANDLER.raiseEvent('Jason-Multi-Period', 'Process Stopped') + callBackFunction(global.DEFAULT_OK_RESPONSE); return;