I have following Spring job to run after every 30 minutes. Please check my cron expression, is that correct?
0 0 0 * * 30
Here is a full cron job definition from the related Spring configuration file:
<bean id="autoWeblogPingTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="jobDetailForWeblogPing"/> <!-- run every 35 minutes --> <property name="cronExpression" value="0 0 0 * * 30" /> </bean>
Instead of a range of values, you can also use the asterisk operator. To specify a job to be run every 20 minutes, you can use “*/20”.
“At every 5th minute.” Cron job every 5 minutes is a commonly used cron schedule. We created Cronitor because cron itself can't alert you if your jobs fail or never start. Cronitor is easy to integrate and provides you with instant alerts when things go wrong.
According to the Quartz-Scheduler Tutorial It should be value="0 0/30 * * * ?"
The field order of the cronExpression is
Ensure you have at least 6 parameters or you will get an error (year is optional).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With