What does BLOCKED state mean for Quartz trigger

我只是一个虾纸丫 提交于 2019-12-03 05:55:21

问题


For some Quartz job, it misfired; and after checked the trigger status in database, it shows BLOCKED. What does this BLOCKED mean specifically?


回答1:


Perhaps some search would help before posting a question here?

WAITING = the normal state of a trigger, waiting for its fire time to arrive and be acquired for firing by a scheduler.

PAUSED = means that one of the scheduler.pauseXXX() methods was used. The trigger is not eligible for being fired until it is resumed.

ACQUIRED = a scheduler node has identified this trigger as the next trigger it will fire - may still be waiting for its fire time to arrive. After it fires the trigger will be updated (per its repeat settings, if any) and placed back into the WAITING state (or be deleted if it does not repeat again).

BLOCKED = the trigger is prevented from being fired because it relates to a StatefulJob that is already executing. When the statefuljob completes its execution, all triggers relating to that job will return to the WAITING state.

In other words, When a state is BLOCKED, another trigger (or an instance of this trigger) is already executing for the trigger's stateful job, so this trigger is blocked until the other trigger is finished.

Link to documentation could be useful for your future reference.http://www.docjar.com/docs/api/org/quartz/Trigger.html



来源:https://stackoverflow.com/questions/25736881/what-does-blocked-state-mean-for-quartz-trigger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!