Skip to content
Discussion options

You must be logged in to vote

Oops, I think I now understand. The problem with my case is that the quartz.jobStore.misfireThreshold configuration property (also set with .WithMisfireThreshold in the SchedulerBuilder) is set to 60 seconds by default.

This means that any Job not executing within a frame of 60 seconds from the desired starting time, WILL NOT be marked as "misfired", and so the misfired policy I set was not executing at all. The Scheduler just ran the Job as soon as it could.

To achieve my desired behavior I had to do:

  • while building the scheduler, use .WithMisfireThreshold(TimeSpan.FromSeconds(1)) (or less)
  • in the repeating trigger, use .WithMisfireHandlingInstructionNextWithRemainingCount()
  • in the fire…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ismdiego
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant