public IActionResult ResumeJob(JobTypeEnum?jobType) { if (jobType == null) { throw new Exception($"JobType '{ControllerContext.RouteData.Values[nameof(jobType)]}' is not defined."); } QuartzScheduler.ResumeTrigger(jobType.Value); return(Ok($"Task '{jobType}' has been resumed.")); }
/// <summary> /// Calls the equivalent method on the 'proxied' <see cref="QuartzScheduler" />. /// </summary> public virtual void ResumeTrigger(TriggerKey triggerKey) { sched.ResumeTrigger(triggerKey); }
/// <summary> /// Calls the equivalent method on the 'proxied' <see cref="QuartzScheduler" />. /// </summary> public virtual Task ResumeTrigger(TriggerKey triggerKey) { return(sched.ResumeTrigger(triggerKey)); }
/// <summary> /// Calls the equivalent method on the 'proxied' <see cref="QuartzScheduler" />, /// passing the <see cref="SchedulingContext" /> associated with this /// instance. /// </summary> public virtual void ResumeTrigger(string triggerName, string groupName) { sched.ResumeTrigger(schedCtxt, triggerName, groupName); }