[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]
Parallel Execution of JOBS.  XML
Forum Index -> Quartz
Author Message
narithot

neo

Joined: 07/31/2014 04:14:53
Messages: 1
Offline

Dear Team,

Can we get clarification on below things. We searched over net but we are unable to conclude.

1) Assume that we created a job and cron trigger for this job. We set this trigger to fire for every two seconds(2 sec). First time trigger is fired and job is in running status. Here our question is, will trigger fires for every 2 seconds even though the same job is in running status? or will it wait for current job execution and then only get fired?

2) org.quartz.threadPool.threadCount : If we gives this count as 5 and assume that we scheduled 10 jobs. As we configured thread count as 5, at a time, only 5 jobs will execute in parallel?

3) How many jobs can we run in parallel using quartz? will it based on HW configuration?
kraiss

journeyman

Joined: 09/17/2013 06:32:19
Messages: 14
Offline

Hi,

1) A job will start every time its trigger fires, even if 'this' job is already running. Btw, you can use the TriggerListener and the JobListener to control trigger and job behaviour.

2) If you give to Quartz 5 workers, it will execute at most 5 job concurrently. If another job want to be executed, it will wait until a thread is free.
If you need to execute more jobs at the same time use more thread or multiple istance of Quartz.

3) I don't know but currently i use 20 threads on a Quartz instance and it works fine.
[WWW]
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team