legacy-knowledge-base
公開されました Sep. 10, 2025

トリガースケジュールに関係なく、起動直後に実行されるスケジュールジョブ

written-by

Cristina Rodriguez

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

learn-legacy-article-disclaimer-text

問題

  • Control Panel -> Job Scheduler -> Job Scheduler Triggersから新しいタスクを起動すると、トリガースケジュールに関係なく、即座に起動されます。

環境

  • Liferay 7.4、2023.Q3

解像度

  • タスクの開始日は、サードパーティライブラリであるquartz、特にAPIメソッド TriggerBuilder.startAt(java.util.Date)によって管理される。
  • その 公式文書 には詳細があまり記載されていないが、 、 指定された日付の前にはトリガーは発射されない と記載されている。

そのため、即座に実行されるのを避けるために、 未来の日付 を「開始日」と表示する必要がある。

追加情報

  • https://www.quartz-scheduler.org/api/2.1.7/org/quartz/TriggerBuilder.html#startAt(java.util.Date)。

did-this-article-resolve-your-issue

legacy-knowledge-base