Reputation: 15789
How do I find out whether a particular job is currently running in Quartz when Quartz is clustered?
The standard answer to the "get running jobs" question is to use scheduler.getCurrentlyExecutingJobs();
But according to the javadoc, this doesn't work in a clustered environment.
Another answer is to use a JobListener and just store the status of the job somewhere when it starts and stops. But according to this, JobListeners do not work in a clustered environment:
Are JobListeners global in a Quartz cluster?
So what's the trick?
Upvotes: 2
Views: 1665