How do I force a quartz.net job to restart intervall after completion

后端 未结 4 945
醉话见心
醉话见心 2021-01-22 19:27

I have a project where I use TopShelf and TopShelf.Quartz

Following this example I am building my jobs with

                s.         


        
4条回答
  •  一整个雨季
    2021-01-22 19:38

    You can use a TriggerListener (http://www.quartz-scheduler.net/documentation/quartz-2.x/tutorial/trigger-and-job-listeners.html) to listen to when the trigger finishes, then reschedule in 5 seconds.

    Another option is to schedule the next job as the final action in the Execute of the job itself.

    http://www.quartz-scheduler.net/documentation/faq.html has a question somewhere 2/3rds of the way down that explains more about it.

提交回复
热议问题