diff --git a/MultiPeriodDaily.js b/MultiPeriodDaily.js index 508590812..562cd2f3f 100644 --- a/MultiPeriodDaily.js +++ b/MultiPeriodDaily.js @@ -247,7 +247,6 @@ */ contextVariables.lastFile = new Date(contextVariables.dateBeginOfMarket.getUTCFullYear() + "-" + (contextVariables.dateBeginOfMarket.getUTCMonth() + 1) + "-" + contextVariables.dateBeginOfMarket.getUTCDate() + " " + "00:00" + GMT_SECONDS); - //contextVariables.lastFile = new Date(contextVariables.lastFile.valueOf() + ONE_DAY_IN_MILISECONDS); if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> getContextVariables -> thisReport.lastFile === undefined"); } if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> getContextVariables -> contextVariables.lastFile = " + contextVariables.lastFile); } diff --git a/Root.js b/Root.js index 710a8ee01..0b125f7c0 100644 --- a/Root.js +++ b/Root.js @@ -287,6 +287,11 @@ if(global.EXECUTION_CONFIG.timePeriod){ processConfig.timePeriod = global.EXECUTION_CONFIG.timePeriod } + + if (processConfig.framework.name === "Multi-Period-Daily") { + processConfig.framework.startDate.fixedDate = processConfig.startMode.noTime.beginDatetime; + processConfig.framework.startDate.resumeExecution = processConfig.startMode.noTime.resumeExecution; + } try { diff --git a/Run.js b/Run.js index d47d89476..97f972dfe 100644 --- a/Run.js +++ b/Run.js @@ -93,7 +93,8 @@ function readExecutionConfiguration() { } let noTime = { run: "false", - beginDatetime: process.env.BEGIN_DATE_TIME + beginDatetime: process.env.BEGIN_DATE_TIME, + resumeExecution: process.env.RESUME_EXECUTION } let fixedInterval = { run: "false",