Can Quartz Scheduler Run jobs serially?

后端 未结 2 916
执念已碎
执念已碎 2021-01-18 16:59

I\'m looking into using Quartz Scheduler, and I was wondering if it was possible to schedule jobs not by time, but when another job finishes. So, when Job A is done, it sta

相关标签:
2条回答
  • 2021-01-18 17:12

    You may want to check the QuartzDesk project I have been involved in. QuartzDesk is a management and monitoring platform for Quartz-based apps and in version 2.0 we have added a new job chaining engine to the platform.

    The engine allows you to orchestrate the execution of your jobs and there is no need to modify your application code in any way. Job chains can be dynamically updated through the QuartzDesk GUI without any disruption to your application.

    0 讨论(0)
  • 2021-01-18 17:24

    Check out JobChainingJobListener, built-in to Quartz (bold mine):

    Keeps a collection of mappings of which Job to trigger after the completion of a given job. If this listener is notified of a job completing that has a mapping, then it will then attempt to trigger the follow-up job. This achieves "job chaining", or a "poor man's workflow".

    That's right, you are looking for a process or workflow engine. Have a look at activiti or jbpm.

    0 讨论(0)
提交回复
热议问题