[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Prevent job from executing multiple times at a given time  XML
Forum Index -> Quartz
Author Message
sebgerpb

neo

Joined: 01/22/2010 02:35:25
Messages: 1
Offline

Hi,

I have a question regarding job execution with multiple triggers. The scenario is the following:

I have a job with lets say 2 triggers. One trigger will fire every 5 minutes, the other every 10 minutes. This means, every 10 minutes the scheduled job will be executed 2 times. But I only want the job to be executed once.

Can somebody give me a hint what I can do to avoid this behavior? I think I have to implement some JobListeners / TriggerListeners but I'm not quite sure yet.
jhouse

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



Just use one trigger that fires every 5 minutes, that will give exactly the same number of firings (at the same times) as one that fires every 5 minutes and one that fires every ten minutes, but only one of which fire on the 10th minute.


 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team