TriggerFiredBundle triggerFiredBundle = new TriggerFiredBundle(job, trigger, calendar, false, new Date(), previousFireTime, previousFireTime, trigger.getNextFireTime());
sets scheduledFireTime not to the "real" scheduled time when misfires are processed.
This plays a role when the misfire policy is set to MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
Fix: Change to
TriggerFiredBundle triggerFiredBundle = new TriggerFiredBundle(job, trigger, calendar, false, new Date(), trigger.getPreviousFireTime(), previousFireTime, trigger.getNextFireTime());
sets
scheduledFireTime
not to the "real" scheduled time when misfires are processed. This plays a role when the misfire policy is set toMISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
Fix: Change to
like the other job stores do.