[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Job Misfire instruction in CronTrigger ?  XML
Forum Index -> Quartz
Author Message
amalraj

journeyman

Joined: 02/10/2011 03:10:41
Messages: 25
Offline

Hello,

I have some doubt in case of Job Misfire instruction in CronTrigger.

On misfired situation, is it possible to retry multiple times(which is configurable) in case of CronTrigger(something like MisfireRepeatCount in SimpleTrigger)?

Example:
If CronTrigger is configured to fire every day at 10 PM with MisFire policy as FireOnce, Then if there is some DB failure from 9-11PM, it will try only once and it will wait for next day.
Is there a option to try multiple times in such a situation?

Please help me.

Thanks In Advance, -Amal
rgupta

journeyman

Joined: 02/18/2011 09:48:08
Messages: 13
Offline

Here are some of the misfire policies for CronTrigger:

MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
MISFIRE_INSTRUCTION_DO_NOTHING
MISFIRE_INSTRUCTION_FIRE_NOW

MISFIRE_INSTRUCTION_FIRE_NOW = Fire Once Now. Basically every time when a job is misfired, it is rescheduled based on its misfire policy.

Check out the Java Doc to get details of each of these policies.

Also the following link about Quartz doc should also give you some insight:

http://quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/tutorial-lesson-06
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team