public void Execute(IJobExecutionContext context) { try { Tasks.CleanupHistory cleanupHistory = new Tasks.CleanupHistory(); cleanupHistory.Run(); Log.Info(String.Format("Job \"{0}\" triggered at {1} UTC.", context.JobDetail.Key, context.Trigger.GetPreviousFireTimeUtc()), this); } catch(Exception ex) { Log.Error("Sitecore.QuartzScheuler: Error in CleanupHistory Job: " + ex.Message + Environment.NewLine + ex.StackTrace, this); throw ex; } }
public void Execute(IJobExecutionContext context) { try { Tasks.CleanupHistory cleanupHistory = new Tasks.CleanupHistory(); cleanupHistory.Run(); Log.Info(String.Format("Job \"{0}\" triggered at {1} UTC.", context.JobDetail.Key, context.Trigger.GetPreviousFireTimeUtc()), this); } catch (Exception ex) { Log.Error("Sitecore.QuartzScheuler: Error in CleanupHistory Job: " + ex.Message + Environment.NewLine + ex.StackTrace, this); throw ex; } }