cron expression task

Hi All,

 

Could you help me with the following Task
I want start a Task every Day at 7:50 pm and 8:30 pm, whats wrong on this Expression?
0 50,30 19,20 ? * *

The Time was in UTC

3 answers

0 vote
Gaston Valente Community Champion Dec 13, 2017

I think you need to use:

 

0 50,30 19,20 * * *

This will run at 19:30 19:50 20:30 20:50, every day of every month of every weekday.

If you to run at 7:50 pm and 8:30 pm, i think you need two tasks, but i'm not sure

0 vote

Hi Michael,

That one will fire at second :00, at minutes :50 and :30, at 19pm and 20pm, of every day. 

Therefore it will fire at 19:30, 19:50, 20:30, 20:50

You cannot be that specific in one task, you will need two tasks, one for 19:50 and one for 20:30. Otherwise if you can be happy with 19:00 and 19:40, then use this one:

0 0,40 19,19 ? * *

0 vote

Thx very much.
So i take two Tasks.

 

best regards

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

140 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you