[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]
The same instance of a scheduled job runs before the first instance of the same job is completed  XML
Forum Index -> Quartz
Author Message
ssethi

journeyman

Joined: 02/03/2011 07:31:14
Messages: 46
Offline

Hi All,

We are using quartz-all-2.1.1 version. using JDBC jobstore.We have few observations for scheduled jobs (ran from xml file)and triggered jobs (a scheduled job internally triggers this job)
Observation with scheduled job:
1). Same Quartz Job is running simultaneously.
means, one Job is running and before completion of this job same job trigger again because of that prevoius job is not completed within that interval time.
Observation with triggered job:
1). The same scenario gives a " org.quartz.ObjectAlreadyExistsException ".
Please provide explanation for above.

we want the same behaviour with scheudled jobs also i.e we dont want 2 instances of same job to run simultaneously.

Thanks,
Shruthi

ssethi

journeyman

Joined: 02/03/2011 07:31:14
Messages: 46
Offline

Hi,

Can someone please respond to it..


Thanks,
Shruthi.
moulsonp

neo

Joined: 12/09/2013 03:20:46
Messages: 2
Offline

Take a look at the @DisallowConcurrentExecution Job class annotation which tells Quartz not to execute multiple instances of a given job definition concurrently.
gorleg

neo

Joined: 12/05/2013 21:16:10
Messages: 5
Offline

Hi,
Thanks for your reply. We have achieved that required functionality with given solution. But in Quartz Database the job previous_triggered_time and next_fire_time are not updating accordingly.
Please provide us is there any solution to achieve my requirement.

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