private void LogTaskStarted(JobExecutionTypeEnum executionType, int executionCnt, int retriesOnFail) { var message = executionType == JobExecutionTypeEnum.RunAfterFail ? $"Job '{JobType}' has been re-ran after fail. Attempt {executionCnt}/{retriesOnFail}." : $"Job '{JobType}' has been started."; TaskSchedulerLogger.LogJobInfo(JobType, executionType, JobResultStatusEnum.Started, message); }
private void LogTaskExecuted(TimeSpan timespan, JobExecutionTypeEnum executionType) { TaskSchedulerLogger.LogJobInfo(JobType, executionType, JobResultStatusEnum.Success, $"Job '{JobType}' has been sucessfully finished in {timespan}."); }