Legacy Knowledge Base
公開されました Sep. 10, 2025

ジョブスケジューラが 「処理中」ステータスになったときの解決方法

Written By

Daniel Martinez Cisneros

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

トリガーされたジョブの実行中にサーバーが停止した後、ジョブスケジューラのログステータスが「処理中」のままとなり、削除できないという問題がありました。

環境

  • Liferay DXP 7.4
  • 四半期リリース 2023.Q3

解決

Job Schedulerのログが 「処理中」ステータスで止まってしまう問題を解決するには、以下の手順に従います:

1. Groovyスクリプトを使用して、DispatchLogエントリーのステータスを変更します:

import com.liferay.dispatch.model.DispatchLog;
import com.liferay.dispatch.service.DispatchLogLocalServiceUtil;

DispatchLog dispatch = DispatchLogLocalServiceUtil.getDispatchLog(${dispatcherLogId})
dispatch.setStatus(4) //Status error

com.liferay.dispatch.service.DispatchLogLocalServiceUtil.updateDispatchLog(dispatch)

${dispatcherLogId} を適切な値に置き換えてください。このIDは、次の2つのオプションのいずれかを使って取得できます:

  • オプション1: 「処理中」ジョブをクリックして、URLから以下を探します:

    _com_liferay_dispatch_web_internal_portlet_DispatchPortlet_dispatchLogId=33701&_com_liferay_dispatch_web_internal_portlet_DispatchPortlet_dispatchTriggerId=3362

  • オプション2: ステータスが保留になっているdispatcherlogテーブルを確認します:

    SELECT * FROM dispatchlog WHERE status = 1 AND endDate IS NULL;

2. 更新後、削除するか、正しいステータスで保持するかを選択できます。

追加情報

 

 

Did this article resolve your issue ?

Legacy Knowledge Base