简体   繁体   中英

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.

您可以使用scheduler.getCurrentlyExecutingJobs()来获取当前正在运行的所有作业的列表。

请注意scheduler.getCurrentlyExecutingJobs()只检查当前的调度程序实例,而不是整个集群。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM