I wanted to clarify which of the below expressions are meant to execute the cron job every hour all the time? I have EXPRESSION_1 configured to run every hour but am noticing some weird behavior with the cron skipping the job for a few hours. Can someone clarify please

    EXPRESSION_1=0 0 * * * ?
    EXPRESSION_2=0 0/0 * * * ?
有帮助吗?

解决方案

Your first expression looks correct and will execute every hour.

As your requirement is once per hour you could also use a quartz SimpleTrigger and avoid using a cron expression.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top