#1516·quartz

Quartz 2.3.2: Triggers Stuck in ACQUIRED/BLOCKED State

Author: ShambhurajedCreated Sep 10, 2026Updated Sep 10, 2026

Quartz Version: 2.3.2

All jobs are annotated with @DisallowConcurrentExecution. The scheduled jobs are running in 2 different instances talking to same DB and isClustered=true. These instances are EKS pods and there is possibility of PODS going down and gets deployed again. In the past PODS have gone down and got redeployed.

On a customer production system, a number of triggers (some scheduled to run every 30 seconds and others every hour) have stopped firing permanently.

In every case, the corresponding row in QRTZ_TRIGGERS has the following characteristics:

  • TRIGGER_STATE = ACQUIRED or BLOCKED
  • NEXT_FIRE_TIME is frozen at a point in the past (approximately 10 months ago)
  • There is no matching row in QRTZ_FIRED_TRIGGERS
  • PREV_FIRE_TIME is consistent with the frozen NEXT_FIRE_TIME, indicating that the trigger stopped at that point and never advanced again

Meanwhile, the scheduler itself appears to be completely healthy:

  • All scheduler nodes continue to check in normally.
  • QRTZ_SCHEDULER_STATE is current.
  • Other triggers continue to fire normally and on schedule.
  • The issue affects only a subset of triggers.

Impact: The affected triggers remain permanently stuck. Restarting or redeploying the application does not fix the issue.

How is this state possible?

My understanding is that when Quartz acquires a trigger for execution, it performs the following operations:

  1. Updates QRTZ_TRIGGERS.TRIGGER_STATE to ACQUIRED.
  2. Inserts the corresponding entry into QRTZ_FIRED_TRIGGERS.
  3. Both operations occur within the same transaction.

Another possible scenario is that both the update and insert successfully commit, and then the container goes down. In that case, I assume Quartz's recovery/background process on another instance checks QRTZ_SCHEDULER_STATE.LAST_CHECKIN_TIME for each INSTANCE_NAME.

If LAST_CHECKIN_TIME has not been updated within the configured CHECKIN_INTERVAL, Quartz identifies the instance as failed and performs the following recovery operations:

  1. Deletes the corresponding INSTANCE_NAME entry from QRTZ_SCHEDULER_STATE.
  2. Deletes the associated entries from QRTZ_FIRED_TRIGGERS.
  3. Updates the corresponding QRTZ_TRIGGERS.TRIGGER_STATE from ACQUIRED/BLOCKED back to WAITING.
  4. These recovery operations also occur within the same transaction.

Given this, I am trying to understand how we can end up with a trigger in QRTZ_TRIGGERS where:

  • TRIGGER_STATE = ACQUIRED or BLOCKED
  • NEXT_FIRE_TIME is in the past
  • and there is no corresponding row in QRTZ_FIRED_TRIGGERS

This appears to be inconsistent with both the normal trigger-acquisition flow and the Quartz recovery flow described above.

Could you help determine what sequence of events could produce this state in Quartz 2.3.2? In particular, I would like to understand whether there is any legitimate Quartz code path that can leave a trigger permanently in ACQUIRED or BLOCKED with no corresponding QRTZ_FIRED_TRIGGERS row, and under what circumstances this could occur.

Resolution

Based on my analysis, if we update the QRTZ_TRIGGERS.TRIGGER_STATE for all the stuck triggers from ACQUIRED/BLOCKED to WAITING, I believe this should allow Quartz to acquire and execute them again.

Could you please confirm whether this is a safe and appropriate way to recover the affected triggers?