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.
精彩评论