[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
misfired trigger in COMPLETED state  XML
Forum Index -> Quartz
Author Message
dclemson

neo

Joined: 10/12/2010 22:06:55
Messages: 2
Offline

Hi, All

Normally, when a trigger reaches its end time, quartz automatically deletes the entry from the qrtz_triggers table.

However, when I set the misfire instruction to MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT, the entry in the qrtz_triggers table is marked with COMPLETED state with next_fire_time=-1. The entry is not removed from the table by quartz.

Question:
1. Why is the trigger in the above misfired case not deleted from the table by quartz?
2. Is there any api method can be used to delete such entry?

Thanks for your input.
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1654
Offline


There are a few corner cases (depending upon processing scenarios) where Quartz marks a trigger "complete" rather than just deleting it, and misfire handling is one of them.

Quartz deletes all "complete" triggers upon startup of the scheduler. So if your application doesn't "bounce" for some time, there may be a collection of triggers in complete state.
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team