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.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I edit this cron schedule to: every morning 06:00 from Monday to Friday?

Ano Niempje
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2025

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)

1 answer

1 accepted

2 votes
Answer accepted
Sergei Troshin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2025

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

Ano Niempje
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2025

Thank you, it works!

Like Sergei Troshin likes this

Suggest an answer

Log in or Sign up to answer