How to run every 25 seconds in Quartz scheduler?

前端 未结 7 2255
悲哀的现实
悲哀的现实 2021-02-12 23:37

I am using the Quartz Scheduling API for Java. Could you help me to run every 25 seconds using cron-expression. It\'s just a delay. It does not have to start always at second 0.

7条回答
  •  遥遥无期
    2021-02-13 00:04

    You can't have a schedule like that for quartz.

    One thing you could do is schedule a wrapper job to run every 5 seconds, and only do any work every fifth execution.

提交回复
热议问题