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;