diff --git a/DebugLog.js b/DebugLog.js index 70adf7be0..50b83f7f8 100644 --- a/DebugLog.js +++ b/DebugLog.js @@ -163,7 +163,7 @@ return; } - if (global.CURRENT_EXECUTION_AT === "Cloud") { + if (global.CURRENT_EXECUTION_AT === "Node") { /* Only ERRORs go to the cloud console. */ diff --git a/Exchange/ExchangeAPI.js b/Exchange/ExchangeAPI.js index 3129473d6..6e8f68098 100644 --- a/Exchange/ExchangeAPI.js +++ b/Exchange/ExchangeAPI.js @@ -38,7 +38,7 @@ let accessToken let keyId let cloneId - if (global.CURRENT_EXECUTION_AT === "Cloud") { + if (global.CURRENT_EXECUTION_AT === "Node") { keyId = process.env.KEY_ID cloneId = process.env.CLONE_ID diff --git a/ExtractionBotProcessMainLoop.js b/ExtractionBotProcessMainLoop.js index 81b4b90a5..b6dbe7ae5 100644 --- a/ExtractionBotProcessMainLoop.js +++ b/ExtractionBotProcessMainLoop.js @@ -49,7 +49,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { // This is what determines if the bot is loaded from the devTeam or an endUser copy. - case "Cloud": { + case "Node": { if (global.RUN_AS_TEAM) { filePath = global.DEV_TEAM + "/" + "bots" + "/" + bot.repo + "/" + pProcessConfig.name; // DevTeams bots only are run at the cloud. } else { @@ -85,7 +85,7 @@ USER_BOT_MODULE = pMODULE; switch (global.CURRENT_EXECUTION_AT) { - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "bots" + "/" + bot.repo; break; } @@ -664,7 +664,7 @@ function checkLoopHealth(pLastLoop) { - if (global.CURRENT_EXECUTION_AT !== "Cloud") { + if (global.CURRENT_EXECUTION_AT !== "Node") { return; } @@ -717,7 +717,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { // This is what determines if the bot is loaded from the devTeam or an endUser copy. - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "AACloud"; // DevTeams bots only are run at the cloud. break; } diff --git a/IndicatorBotProcessMainLoop.js b/IndicatorBotProcessMainLoop.js index 514f6d635..591aa6648 100644 --- a/IndicatorBotProcessMainLoop.js +++ b/IndicatorBotProcessMainLoop.js @@ -51,7 +51,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { // This is what determines if the bot is loaded from the devTeam or an endUser copy. - case "Cloud": { + case "Node": { if (global.RUN_AS_TEAM) { filePath = global.DEV_TEAM + "/" + "bots" + "/" + bot.repo + "/" + pProcessConfig.name; // DevTeams bots only are run at the cloud. } else { @@ -88,7 +88,7 @@ USER_BOT_MODULE = pMODULE; switch (global.CURRENT_EXECUTION_AT) { - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "bots" + "/" + bot.repo; break; } @@ -898,7 +898,7 @@ function checkLoopHealth(pLastLoop) { - if (global.CURRENT_EXECUTION_AT !== "Cloud") { + if (global.CURRENT_EXECUTION_AT !== "Node") { return; } @@ -951,7 +951,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { // This is what determines if the bot is loaded from the devTeam or an endUser copy. - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "AACloud"; // DevTeams bots only are run at the cloud. break; } diff --git a/Root.js b/Root.js index a12f148bb..1cf6532fa 100644 --- a/Root.js +++ b/Root.js @@ -140,7 +140,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "AACloud"; // DevTeams bots only are run at the cloud. break; } @@ -253,7 +253,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "bots" + "/" + listItem.repo; // DevTeams bots only are run at the cloud. console.log(logDisplace + "Root : [INFO] start -> getBotConfig -> Getting Bot Config from the devTeams's Bot. "); @@ -343,7 +343,7 @@ let processConfig = botConfig.processes[i]; switch (global.CURRENT_EXECUTION_AT) { - case "Cloud": { + case "Node": { processConfig.startMode = global.EXECUTION_CONFIG.startMode // Override file storage configuration if(global.EXECUTION_CONFIG.timePeriod){ processConfig.timePeriod = global.EXECUTION_CONFIG.timePeriod @@ -819,7 +819,7 @@ let clonName = botConfig.codeName + "-" + "Clon" + clonKey; clonName += ".1.0"; - if (global.CURRENT_EXECUTION_AT === "Cloud") { + if (global.CURRENT_EXECUTION_AT === "Node") { clonName += "-" + process.env.CLONE_ID; } @@ -843,7 +843,7 @@ let genes = {}; let clonName = botConfig.codeName; - if (global.CURRENT_EXECUTION_AT === "Cloud") { + if (global.CURRENT_EXECUTION_AT === "Node") { clonName += "-" + process.env.CLONE_ID; } diff --git a/Run.js b/Run.js index be015b060..926474a32 100644 --- a/Run.js +++ b/Run.js @@ -1,7 +1,7 @@ require('dotenv').config() global.CURRENT_ENVIRONMENT = "Develop"; -global.CURRENT_EXECUTION_AT = "Cloud"; +global.CURRENT_EXECUTION_AT = "Node"; global.SHALL_BOT_STOP = false; global.AT_BREAKPOINT = false; // This is used only when running at the browser. global.RUN_AS_TEAM = false; diff --git a/TradingBotProcessMainLoop.js b/TradingBotProcessMainLoop.js index 0f5185b48..4aceb006b 100644 --- a/TradingBotProcessMainLoop.js +++ b/TradingBotProcessMainLoop.js @@ -52,7 +52,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { // This is what determines if the bot is loaded from the devTeam or an endUser copy. - case "Cloud": { + case "Node": { if (global.RUN_AS_TEAM) { filePath = global.DEV_TEAM + "/" + "bots" + "/" + bot.repo + "/" + pProcessConfig.name; // DevTeams bots only are run at the cloud. } else { @@ -94,7 +94,7 @@ USER_BOT_MODULE = pMODULE; switch (global.CURRENT_EXECUTION_AT) { - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "bots" + "/" + bot.repo; break; } @@ -284,7 +284,7 @@ } - if (global.CURRENT_EXECUTION_AT === "Cloud") { + if (global.CURRENT_EXECUTION_AT === "Node") { if (bot.processDatetime.valueOf() > endDatetime.valueOf()) { @@ -323,7 +323,7 @@ } - if (global.CURRENT_EXECUTION_AT === "Cloud") { + if (global.CURRENT_EXECUTION_AT === "Node") { let beginDatetime = new Date(bot.competition.beginDatetime); @@ -987,7 +987,7 @@ if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] run -> loop -> updateClonesModule -> Entering function."); } - if (global.CURRENT_EXECUTION_AT === "Cloud") { + if (global.CURRENT_EXECUTION_AT === "Node") { // Update clones module with latest context informations @@ -1079,7 +1079,7 @@ function checkLoopHealth(pLastLoop) { - if (global.CURRENT_EXECUTION_AT !== "Cloud") { + if (global.CURRENT_EXECUTION_AT !== "Node") { return; } @@ -1134,7 +1134,7 @@ let filePath; switch (global.CURRENT_EXECUTION_AT) { // This is what determines if the bot is loaded from the devTeam or an endUser copy. - case "Cloud": { + case "Node": { filePath = global.DEV_TEAM + "/" + "AACloud"; // DevTeams bots only are run at the cloud. break; }