diff --git a/.vs/AACharly-Extraction-Bot/v15/.suo b/.vs/AACharly-Extraction-Bot/v15/.suo index c2270a074..e3058a38e 100644 Binary files a/.vs/AACharly-Extraction-Bot/v15/.suo and b/.vs/AACharly-Extraction-Bot/v15/.suo differ diff --git a/Poloniex-Hole-Fixing/User.bot.js b/Poloniex-Hole-Fixing/User.bot.js index 730ccd645..6ff78d753 100644 --- a/Poloniex-Hole-Fixing/User.bot.js +++ b/Poloniex-Hole-Fixing/User.bot.js @@ -126,8 +126,14 @@ What is the lastFile pointer? if ((year === thisDatetime.getUTCFullYear() && month > thisDatetime.getUTCMonth() + 1) || year > thisDatetime.getUTCFullYear()) { - logger.write("[ERROR] start -> writeStatusReport -> We are too far in the future. Bot will not execute. Sorry."); - callBackFunction(global.DEFAULT_FAIL_RESPONSE); + logger.write("[ERROR] start -> writeStatusReport -> We are too far in the future. Bot will not execute now."); + + let customOK = { + result: global.CUSTOM_OK_RESPONSE.result, + message: "Too far in the future." + } + logger.write("[WARN] start -> getContextVariables -> customOK = " + customOK.message); + callBackFunction(customOK); return; } @@ -183,6 +189,7 @@ What is the lastFile pointer? let reportKey; reportKey = "AAMasters" + "-" + "AACharly" + "-" + "Poloniex-Live-Trades" + "-" + "dataSet.V1"; + if (FULL_LOG === true) { logger.write("[INFO] start -> getContextVariables -> reportKey = " + reportKey); } thisReport = dependencies.statusReports.get(reportKey).file; if (thisReport.lastFile === undefined) { @@ -200,6 +207,7 @@ What is the lastFile pointer? lastLiveTradeFile = new Date(thisReport.lastFile.year + "-" + thisReport.lastFile.month + "-" + thisReport.lastFile.days + " " + thisReport.lastFile.hours + ":" + thisReport.lastFile.minutes + GMT_SECONDS); reportKey = "AAMasters" + "-" + "AACharly" + "-" + "Poloniex-Historic-Trades" + "-" + "dataSet.V1"; + if (FULL_LOG === true) { logger.write("[INFO] start -> getContextVariables -> reportKey = " + reportKey); } thisReport = dependencies.statusReports.get(reportKey).file; if (thisReport.lastFile === undefined) { @@ -249,6 +257,7 @@ What is the lastFile pointer? } reportKey = "AAMasters" + "-" + "AACharly" + "-" + "Poloniex-Hole-Fixing" + "-" + "dataSet.V1" + "-" + year + "-" + month; + if (FULL_LOG === true) { logger.write("[INFO] start -> getContextVariables -> reportKey = " + reportKey); } holeFixingStatusReport = dependencies.statusReports.get(reportKey).file; if (holeFixingStatusReport.lastFile === undefined) { @@ -311,6 +320,10 @@ What is the lastFile pointer? } } catch (err) { logger.write("[ERROR] start -> getContextVariables -> err = " + err.message); + if (err.message === "Cannot read property 'file' of undefined") { + logger.write("[HINT] start -> getContextVariables -> Check the bot configuration to see if all of its dependencies declarations are correct. "); + logger.write("[HINT] start -> getContextVariables -> Dependencies loaded -> keys = " + JSON.stringify(dependencies.keys)); + } callBackFunction(global.DEFAULT_FAIL_RESPONSE); } } diff --git a/bin/Microsoft.NodejsTools.WebRole.dll b/bin/Microsoft.NodejsTools.WebRole.dll index e0d0ccfca..03b93f4a1 100644 Binary files a/bin/Microsoft.NodejsTools.WebRole.dll and b/bin/Microsoft.NodejsTools.WebRole.dll differ diff --git a/obj/Debug/Project.njsproj.FileListAbsolute.txt b/obj/Debug/Project.njsproj.FileListAbsolute.txt new file mode 100644 index 000000000..af92467d7 --- /dev/null +++ b/obj/Debug/Project.njsproj.FileListAbsolute.txt @@ -0,0 +1,3 @@ +C:\Users\Luis\source\repos\Bots\AAMasters\AACharly-Extraction-Bot\obj\Debug\Project.njsprojResolveAssemblyReference.cache +C:\Users\Luis\source\repos\Bots\AAMasters\AACharly-Extraction-Bot\obj\Debug\Project.njsproj.CoreCompileInputs.cache +C:\Users\Luis\source\repos\Bots\AAMasters\AACharly-Extraction-Bot\bin\Microsoft.NodejsTools.WebRole.dll diff --git a/this.bot.config.json b/this.bot.config.json index c6d652afb..947aadaa6 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -31,6 +31,7 @@ "normalWaitTime": 60000, "retryWaitTime": 10000, "sleepWaitTime": 3600000, + "comaWaitTime": 86400000, "dependencies": [ { "devTeam": "AAMasters", @@ -65,6 +66,7 @@ "normalWaitTime": 60000, "retryWaitTime": 10000, "sleepWaitTime": 3600000, + "comaWaitTime": 86400000, "dependencies": [ { "devTeam": "AAMasters", @@ -93,12 +95,12 @@ "description": "Scans the trades saved by the Live Trades and Historic Trades processes searching for missing records. Once a hole is found on the data set, it patches it by retrieving the missing records from the exchange.", "startMode": { "allMonths": { - "run": "false", - "minYear": "2014", + "run": "true", + "minYear": "2018", "maxYear": "2018" }, "oneMonth": { - "run": "true", + "run": "false", "year": "2018", "month": "03" }, @@ -109,6 +111,7 @@ "normalWaitTime": 60000, "retryWaitTime": 10000, "sleepWaitTime": 3600000, + "comaWaitTime": 86400000, "dependencies": [ { "devTeam": "AAMasters",