开发者

Avoiding a quartz shedule miss

I am using q开发者_运维百科uartz.net and it's great. But what happens if my server is down and I miss an event (I am using a database to store quartz events)? I want to make sure events run, even if they are a week late, but I don't see how this is configured?


According to the API documentation I've dug up, you can control this through MisfireInstruction.CronTrigger, and setting it to FireOnceNow - this will ensure the task is run once immediately.

Hope that puts you on the right path.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜