I used spring scheduler with cron expression
*/5 * * * * ?
(for every 5 seconds) . It's worked for last one month, suddenly it's stopped in last two days.
After Restarting server again it's working fine.
Is there any difference between
*/5 * * * * ?
*/5 * * * * *
? it's based on any month basis.
So what is the meaning of ? here. Want to know the reason why it's stopped?
Thanks in Advance.
Here "
*
means all values. For example, dayofmonth="*" means run the process every day.
"?"
is used only for dayofmonth and dayofweek attribute
and means "without regard to this value" For example, hours="12" dayofweek="MON-FRI" dayofmonth="?" means "Run at noon every weekday (without regard to the day of the month)".
","
separates multiple values. For example, dayofweek="MON,FRI" means every Monday and Friday. Do not includes spaces after the comma.
"/"
specifies increments. For example, minutes="0/15" means start at minute 0 and run every 15 minutes.
"L" is used only for dayofmonth and dayofweek and means "the last day of the month/week".
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