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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.