Jo
unread,Apr 10, 2013, 6:37:27 PM4/10/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to quar...@googlegroups.com
I have a primary job in a Windows service that runs off a cron trigger. It creates hundreds of secondary jobs and triggers, adds them to the scheduler, and then terminates. These secondary jobs each take a few seconds to complete and are set to FireNow on a misfire.
I want the secondary jobs to be executed in the order they were scheduled (first-in-first-out). And if the host server goes offline, I'd like these scheduled jobs to resume firing, one at a time, on restart of the service and scheduler.
I have Quartz configured to run on a single thread using AdoJobStore. I'm having problems with the misfireThreshold. If I set it to something small like 1000 (1sec) then Quartz adds multiple consecutive entries of "Handling xx trigger(s) that missed their scheduled fire-time" to the output log. It also does not fire all scheduled jobs and fires them out of sequence.
Of course if I set a large value for misfireThreshold to remove these log entries, then Quartz will skip over the first few scheduled jobs.
So how do I effectively remove the effect of the misfireThreshold value? I simiply want the scheduler to process available jobs one by one in the order they were scheduled, until they're all executed.
I think there's a way to sequence jobs in v2.0 but I'd like to get the FIFO approach working if possible. Thanks.