Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens to jobs affected by Quartz DisallowConcurrentExecution

What happens when a job does not run because of the disallow annotation.

Is it queued to run after the currently running instance dies? Is that duplicate "run" of it just thrown away, never to be heard from again?

I've tried testing in code, but my inexperience with the language and library is causing some difficulty.

like image 979
rediVider Avatar asked Jan 19 '23 21:01

rediVider


1 Answers

The additional firings are just delayed (as if no worker thread is available to run them) until the first instance completes. If that causes the next fire time to be missed by more than the scheduler's configured misfire threshold, then the misfire instruction will be applied to the trigger that was blocked.

like image 68
jhouse Avatar answered Apr 28 '23 00:04

jhouse