Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Quartz misfires not working

  1. #11
    Join Date
    Mar 2009
    Location
    USA
    Posts
    1

    Default Quartz misfires not working

    The issue is that the subsequent cron trigger has misfired and the cron trigger is currently set to ignore the misfires.
    The initial reason for choosing this was to allow stop/start of Cron jobs to resume at the next trigger rather then firing immediately, but I had not foreseen this issue. It is only evident because I had reduced the misfire threshold.

    I will change the misfire instruction to use MISFIRE_INSTRUCTION_FIRE_ONCE_NOW but, in the meantime, a workaround is to increase the misfire threshold as follows.


    invitation letter
    Last edited by invitation; Mar 8th, 2009 at 01:45 AM. Reason: signatuer

  2. #12

    Default

    Quote Originally Posted by jimpo View Post
    Finally got misfires working with CronTrigger as I would want them to.

    1) <property name="overwriteExistingJobs" value="true" /> causes a problem, since it will overwrite all triggers when quartz starts up (doh!) - overwriting the NEXT_FIRE_TIME and hence never misfiring any triggers.

    2) At some point I changed the misfire threshold to 1 "to make sure misfires are always detected" (some page actually suggested this solution) - well, this is not very good either since this way Quartz detects that the job has misfired, changes status to MISFIRED, calls trigger to determine next fire time, changes job status to WAITING with new fire time - and before the trigger has chance to fire, it is already updated to MISFIRED status again. So better use something like 5000 instead.

    I am sure there were other overlapping issues as well, but I cannot describe other than these two anymore. Now the CronTrigger misfires work as I would expect.

    I now use MISFIRE_INSTRUCTION_SMART_POLICY instead of MISFIRE_INSTRUCTION_FIRE_ONCE_NOW, not sure if this has any effect.
    Thanks jimpo. You apparently save me.
    I was having same issue and <property name="overwriteExistingJobs" value="true" /> was the culprit. Although MISFIRE_INSTRUCTION_FIRE_ONCE_NOW is fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •