Search code examples
quartz-schedulerrestartjobs

Quartz job doesn't restart after instance fail


I have QUARTZ 1.8.5 running in a clustered environment (2 nodes, persistence, clustered , JobStoreCMT). Now I schedule several jobs to run everyday at a specific hour. I set REQUEST RECOVERY to true for every of these jobs (jobDetail.setRequestsRecovery(true). I see that the flag is set to 1 into QRTZ_JOB_DETAILS table. What I want is that a node fails (Jboss server is restarted for example) then the other alive node to restart the failed job. But this doesn't happens.

What I'm doing wrong/ not doing ?

Thanks.


Solution

  • Have you tried to update to the latest Quartz? There is a version 2.1.6 out already.

    Otherwise, what you're doing seems to be right.