예제 #1
0
        private void RecordFailedFeedRun(int feedId, IExecutionLogLogger executionLogLogger)
        {
            var feedRun = FeedRunService.GetLatestRun(feedId);

            feedRun.LastExecutionStartDate = executionLogLogger.GetExecutionStartTime();
            executionLogLogger.AddCustomMessage("This execution failed. Terminating execution.");
            feedRun.ExecutionLog = executionLogLogger.GetExecutionLog();
            FeedRunService.EndFeedRun(feedRun, false);
        }
예제 #2
0
        private void RecordFailedFeedRun(int feedId)
        {
            var feedRun = FeedRunService.GetLatestRun(feedId);

            feedRun.LastExecutionStartDate     = _reportInformation.ExecutionStartTime;
            feedRun.LastExecutionCompletedDate = DateTime.Now;
            _executionInformation.AddCustomMessage("This execution failed. Terminating execution.");
            feedRun.ExecutionLog = _executionInformation.GetExecutionLog();
            FeedRunService.EndFeedRun(feedRun, false);
        }
예제 #3
0
        private void HandleExit()
        {
            // Set the current run to be incomplete
            var feedRun = FeedRunService.GetLatestRun(FeedId);

            feedRun.LastExecutionStartDate = ExecutionLogLogger.GetExecutionStartTime();
            ExecutionLogLogger.AddCustomMessage("This execution failed. Terminating execution.");
            feedRun.ExecutionLog = ExecutionLogLogger.GetExecutionLog();
            FeedRunService.EndFeedRun(feedRun, false);

            Log.Info("Executed HandleExit()!");
        }