BLOCKED 状态对于 Quartz 触发器意味着什么 [英] What does BLOCKED state mean for Quartz trigger

查看:121
本文介绍了BLOCKED 状态对于 Quartz 触发器意味着什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于某些 Quartz 工作,它失败了;检查数据库中的触发器状态后,显示BLOCKED.这个 BLOCKED 具体是什么意思?

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

推荐答案

在此处发布问题之前,也许进行一些搜索会有所帮助?

Perhaps some search would help before posting a question here?

WAITING = 触发器的正常状态,等待其触发时间到达并被调度程序获取以进行触发.

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

PAUSED = 表示使用了 scheduler.pauseXXX() 方法之一.触发器在恢复之前没有资格被触发.

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

ACQUIRED = 调度器节点已将此触发器标识为它将触发的下一个触发器 - 可能仍在等待其触发时间到来.触发后,触发器将被更新(根据其重复设置,如果有)并放回 WAITING 状态(如果不再重复,则将其删除).

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 = 触发器被阻止被触发,因为它与一个已经在执行的 StatefulJob 相关.当有状态作业完成其执行时,与该作业相关的所有触发器将返回到 WAITING 状态.

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.

换句话说,当一个状态被 BLOCKED 时,另一个触发器(或这个触发器的一个实例)已经在为触发器的有状态作业执行,所以这个触发器被阻塞,直到另一个触发器完成.

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.

文档链接可能对您以后的参考有用.http://www.docjar.com/docs/api/org/quartz/Trigger.html

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

这篇关于BLOCKED 状态对于 Quartz 触发器意味着什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆