Re: PauseJob causes job to queue up until ResumeJob

905 views
Skip to first unread message

Jason Meckley

unread,
Jul 11, 2012, 12:58:40 PM7/11/12
to quar...@googlegroups.com
that behavior sounds right to me. pause does just that. stops execution until the jobs are resumed. resume, as the name implies will pick up where the scheduler last left off prior to the pause. If you can explain what you want to happen, then we may be able to recommend how to manage the execution of the jobs.

On Wednesday, July 11, 2012 12:27:02 PM UTC-4, GeordieStew wrote:
Hi folks

I'm currently writing a C# scheduler application. When using PauseJob, the job doesn't run. When I use ResumeJob (after a PauseJob), all of the jobs that were "missed" during the Pause time execute.

Any way I can stop it? 

GeordieStew

unread,
Jul 12, 2012, 10:20:08 AM7/12/12
to quar...@googlegroups.com
When I Pause, I don't want any more jobs to be scheduled/triggered/started until I Resume. So, don't want them to queue up whilst paused.

Jason Meckley

unread,
Jul 12, 2012, 12:20:23 PM7/12/12
to quar...@googlegroups.com
Think of Pause and Resume like Pause and Play on a movie or audio file.

if you want to prevent a job from being triggered you need to remove the trigger. If you want to prevent a job from being scheduled you need to stop the scheduler.

Jay Vilalta

unread,
Jul 12, 2012, 7:03:47 PM7/12/12
to quar...@googlegroups.com

You can change the misfire policy so that the job does not trigger if you pause it, but consider that the misfire policy applies not just to a paused job, but to whenever the job does not fire when it should.

--
You received this message because you are subscribed to the Google Groups "Quartz.NET" group.
To view this discussion on the web visit https://groups.google.com/d/msg/quartznet/-/Ju00x4UPzGEJ.
To post to this group, send email to quar...@googlegroups.com.
To unsubscribe from this group, send email to quartznet+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/quartznet?hl=en.

GeordieStew

unread,
Jul 13, 2012, 3:14:31 AM7/13/12
to quar...@googlegroups.com
Does it mean that exceptions won't be raised out of the job?

Thanks for the responses :)

To unsubscribe from this group, send email to quartznet+unsubscribe@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages