Example #1
0
 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."));
 }
Example #2
0
 /// <summary>
 /// Calls the equivalent method on the 'proxied' <see cref="QuartzScheduler" />.
 /// </summary>
 public virtual void ResumeTrigger(TriggerKey triggerKey)
 {
     sched.ResumeTrigger(triggerKey);
 }
Example #3
0
 /// <summary>
 /// Calls the equivalent method on the 'proxied' <see cref="QuartzScheduler" />.
 /// </summary>
 public virtual Task ResumeTrigger(TriggerKey triggerKey)
 {
     return(sched.ResumeTrigger(triggerKey));
 }
Example #4
0
 /// <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);
 }