Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hello,
I have this cron schedule, which is supposed to run every morning 06:00 from Monday to Friday:
* * 6 ? * MON-FRI *
But it doesn't work and seems to execute every minute. How do I fix this?
I used this from another community topic for reference:
0 0 6 1/1 * ? *
| | | | | | |
| | | | | | +-- Year (range: 1970-2099) *= All years
| | | | | +---- Day of the Week (range: 1-7 SUN-SAT) ?= No specific month
| | | | +------ Month of the Year (range: 0-11 JAN-DEC)*= All months
| | | +--------- Day of the Month (range: 1-31) 1/1 = run everyday
| | +------------- Hour (range: 0-23)
| +---------------- Minute (range: 0-59)
+------------------ Second (range: 0-59)
Hi @Ano Niempje and Welcome to Atlassian Communitu!
It looks like your cron job runs every second because of the * in the first position.
Here is a cron expression that runs at 6 AM every weekday (Monday to Friday):
0 0 6 ? * MON,TUE,WED,THU,FRI *
Btw, i use this site: Cron Expression Generator & Explainer - Quartz
Thank you, it works!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.