Anand Soni
Anand Soni

Reputation: 5110

How to check if a job is running in Quartz Framework

I want to use Quartz Framework in my application. There are two jobs in the scheduler. Now I want to check if job1 is running. How can I check? I have tried to Google it but failed to find the solution.

I am following the first of example from Quartz distribution.

Upvotes: 25

Views: 24795

Answers (2)

arganzheng
arganzheng

Reputation: 1334

Please note that scheduler.getCurrentlyExecutingJobs() just checks for the current scheduler instance,not the whole cluster.

Upvotes: 5

dogbane
dogbane

Reputation: 274888

You can use scheduler.getCurrentlyExecutingJobs() to get a list of all jobs which are currently running.

Upvotes: 28

Related Questions