/// <summary> /// Inform the <see cref="T:Quartz.Spi.IJobStore"/> that the scheduler has completed the /// firing of the given <see cref="T:Quartz.ITrigger"/> (and the execution its /// associated <see cref="T:Quartz.IJob"/>), and that the <see cref="T:Quartz.JobDataMap"/> /// in the given <see cref="T:Quartz.IJobDetail"/> should be updated if the <see cref="T:Quartz.IJob"/> /// is stateful. /// </summary> public Task TriggeredJobComplete(IOperableTrigger trigger, IJobDetail jobDetail, SchedulerInstruction triggerInstCode, CancellationToken cancellationToken = default(CancellationToken)) { _logger.Info("TriggeredJobComplete"); DoWithLock(() => _storage.TriggeredJobComplete(trigger, jobDetail, triggerInstCode), string.Format("Error on triggered job complete - job:{0} - trigger:{1}", jobDetail, trigger)); return(Task.FromResult(0)); }
/// <summary> /// Inform the <see cref="T:Quartz.Spi.IJobStore"/> that the scheduler has completed the /// firing of the given <see cref="T:Quartz.ITrigger"/> (and the execution its /// associated <see cref="T:Quartz.IJob"/>), and that the <see cref="T:Quartz.JobDataMap"/> /// in the given <see cref="T:Quartz.IJobDetail"/> should be updated if the <see cref="T:Quartz.IJob"/> /// is stateful. /// </summary> public void TriggeredJobComplete(IOperableTrigger trigger, IJobDetail jobDetail, SchedulerInstruction triggerInstCode) { _logger.Info("TriggeredJobComplete"); DoWithLock(() => _storage.TriggeredJobComplete(trigger, jobDetail, triggerInstCode), string.Format("Error on triggered job complete - job:{0} - trigger:{1}", jobDetail, trigger)); }