Exemple #1
0
 private void RecordSuccessfulFeedRun(IFeedRun feedRun, IExecutionLogLogger executionLogLogger)
 {
     feedRun.DateCompleted              = _effectiveExecutionEndTime;
     feedRun.LastExecutionStartDate     = executionLogLogger.GetExecutionStartTime();
     feedRun.LastExecutionCompletedDate = executionLogLogger.GetExecutionEndTime();
     feedRun.ExecutionLog = executionLogLogger.GetExecutionLog();
     FeedRunService.EndFeedRun(feedRun, true);
 }
 private void RecordSuccessfulFeedRun(IFeedRun feedRun)
 {
     feedRun.DateCompleted              = _effectiveExecutionEndTime;
     feedRun.LastExecutionStartDate     = _reportInformation.ExecutionStartTime;
     feedRun.LastExecutionCompletedDate = _reportInformation.ExecutionEndTime.Value;
     feedRun.ExecutionLog = _executionInformation.GetExecutionLog();
     FeedRunService.EndFeedRun(feedRun, true);
 }
Exemple #3
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);
        }
        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);
        }
        private void HandleSuccess()
        {
            _currentRun.DateCompleted              = _effectiveExecutionEndTime;
            _currentRun.LastExecutionStartDate     = ExecutionLogLogger.GetExecutionStartTime();
            _currentRun.LastExecutionCompletedDate = ExecutionLogLogger.GetExecutionEndTime();
            _currentRun.ExecutionLog = ExecutionLogLogger.GetExecutionLog();
            FeedRunService.EndFeedRun(_currentRun, true);

            // Remove old jobs
            RemoveOldJobs();
        }
        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()!");
        }
        private void HandleSuccess()
        {
            _currentRun.DateCompleted              = _effectiveExecutionEndTime;
            _currentRun.LastExecutionStartDate     = ExecutionLogLogger.GetExecutionStartTime();
            _currentRun.LastExecutionCompletedDate = ExecutionLogLogger.GetExecutionEndTime();
            _currentRun.ExecutionLog = ExecutionLogLogger.GetExecutionLog();
            FeedRunService.EndFeedRun(_currentRun, true);

            // Write out the new "done" file
            WriteDoneFile();

            // Execute file-related operations
            ExecuteFileOperations();

            // Remove old jobs
            RemoveOldJobs();
        }