From 8fbf10a8bd0e658f4114437ef899d8805cf77d53 Mon Sep 17 00:00:00 2001 From: Matias Date: Wed, 24 Apr 2019 11:49:23 -0300 Subject: [PATCH 1/4] Adding logs to identify an issue with the storage --- Context.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Context.js b/Context.js index 69494f7dd..6463f3243 100644 --- a/Context.js +++ b/Context.js @@ -289,6 +289,7 @@ */ + logger.write(MODULE_NAME, "[ERROR] initialize -> getExecutionContext -> onFileReceived -> Response from storage. -> Text = " + text); logger.write(MODULE_NAME, "[ERROR] initialize -> getExecutionContext -> onFileReceived -> Bot cannot execute without the Execution Context. -> Err = " + err.message); callBack(global.DEFAULT_FAIL_RESPONSE); } From 76225ca7d6f4663c14cbb734c642b5c13a7ac7c8 Mon Sep 17 00:00:00 2001 From: Matias Date: Wed, 24 Apr 2019 11:49:43 -0300 Subject: [PATCH 2/4] Adding the process time to the output --- MultiPeriodDaily.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MultiPeriodDaily.js b/MultiPeriodDaily.js index c25258817..884f53e4a 100644 --- a/MultiPeriodDaily.js +++ b/MultiPeriodDaily.js @@ -297,6 +297,8 @@ bot.processDatetime = new Date(contextVariables.lastFile.valueOf() - ONE_DAY_IN_MILISECONDS); // Go back one day to start well when we advance time at the begining of the loop. + console.log(new Date().toISOString() + " " + pad(bot.codeName, 20) + " " + pad(bot.process, 30) + " " + " bot.processDatetime = " + bot.processDatetime.toISOString()); + advanceTime(); function advanceTime() { From 586b4f4cdbbcf2ca4ced6a67f54173f890018fb7 Mon Sep 17 00:00:00 2001 From: Matias Date: Wed, 24 Apr 2019 11:50:06 -0300 Subject: [PATCH 3/4] Removing process time from this line. --- IndicatorBotProcessMainLoop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndicatorBotProcessMainLoop.js b/IndicatorBotProcessMainLoop.js index dabe97326..9d06c3150 100644 --- a/IndicatorBotProcessMainLoop.js +++ b/IndicatorBotProcessMainLoop.js @@ -157,7 +157,7 @@ /* High level log entry */ console.log(new Date().toISOString() + " " + pad(bot.codeName, 20) + " " + pad(bot.process, 30) + " " + pad(pMonth, 2) + "/" + pad(pYear, 4) - + " Entered into Main Loop # " + pad(Number(bot.loopCounter), 8) + " bot.processDatetime = " + bot.processDatetime.toISOString()); + + " Entered into Main Loop # " + pad(Number(bot.loopCounter), 8)); /* We will prepare first the infraestructure needed for the bot to run. There are 3 modules we need to sucessfullly initialize first. */ From f929752f697cded05818b6e3564772f9c7c4dda2 Mon Sep 17 00:00:00 2001 From: Matias Date: Wed, 24 Apr 2019 11:50:39 -0300 Subject: [PATCH 4/4] Updating dependency to the exchange gateway --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 195aa8647..c1dfc083b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "author": "Luis-Fernando-Molina", "license": "ISC", "dependencies": { - "@superalgos/exchange-gateway": "0.0.1", + "@superalgos/exchange-gateway": "0.0.2", "@superalgos/mqservice": "0.0.14", "apollo-boost": "^0.1.16", "assert": "^1.4.1",