Cron Expression in reocurring tasks

Susan Corless August 2, 2017

Hi

I am setting up a re-occurig task in JIRA, which I'd like to run at 12:01 AM Monday to Friday. 

So I have the following Cron expression in place

0 01 0 * MON-FRI

And the task is set to start from 2017-08-02 00:01 but when this is saved it says the next run date is 2017-09-01 01:00

Images of the screens are included 

JIRA 1.JPGJIRA 2.JPG

Any ideas on where I might be going wrong?


Thanks

Susan

 

2 answers

1 accepted

0 votes
Answer accepted
Maciej Kucharek August 3, 2017

Hi Susan,

First of all, if you want to run at 12:01 AM, I believe your cron expression should look like:

1 0 * * MON-FRI"

(minutes come before hours).

That being said, the add-on you're using would not do that for you. The reason is highlighted on your screenshot, as they are creating issues every 30 minutes. This means that even though you'll set a desired cron expression, your actual running time will get "rounded up" to next half an hour.

If you'd like to have a precise control over when the tasks are created (without the 30 minutes rounding), I'd suggest you give The Scheduler a try.

All the best,

Maciej

Susan Corless August 4, 2017

Thanks very much Maciej - i thought it would be quiet a silly mistake! I'll have a look at Scheduler too.

0 votes
Maciej Kucharek August 3, 2017

duplicate

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events