开发者

Quartz.NET - paused jobs

开发者 https://www.devze.com 2023-03-10 10:07 出处:网络
I\'m using Quartz.NET in an application I am creating, and I give users th开发者_开发百科e option of pausing the jobs/triggers as required. One issue I have is that if a job is paused when it was due

I'm using Quartz.NET in an application I am creating, and I give users th开发者_开发百科e option of pausing the jobs/triggers as required. One issue I have is that if a job is paused when it was due to execute, when it's resumed it executes straight away - I'd want it to wait until the next time it should run, i.e. if it's every minute it'd wait til the next minute.

Is this an option in Quartz/Quartz.NET?


Try using .StandBy instead of pause. Pause will apply the misfire instruction, StandBy will not.

This might help: http://quartznet.sourceforge.net/apidoc/topic94.html

UPDATE (broken link)

http://www.quartz-scheduler.net/apidoc/1.0/html/topic94.html

Note this is version 1 documentation. I assume the same rules apply to v2 but could not see any documentation to confirm or deny.

0

精彩评论

暂无评论...
验证码 换一张
取 消