Difference between DeleteJob () and Unschedulejob () in Quartz 1.8.5

Can someone tell me the difference between deleteJob () and unscheduleJob () of quartz 1.8.5?

Thanks.

+6
source share
1 answer

If you look at the implementations of both methods in QuartzScheduler.java , you will notice that deleteJob (JobKey jobKey)

  • goes through all the triggers that have a link to this task, for their schedule
  • deletes a job from storage

whereas unscheduleJob (TriggerKey triggerKey) will simply trigger the trigger, so if other triggers reference this task, they will not be changed.

+8
source

Source: https://habr.com/ru/post/914862/


All Articles