Orchestrator Advanced Cron

Hi,

“On weekdays, every hour between 08:00 and 19:00. On weekends, at 08:00 and 13:00.”

Can we provide a cron expression? The one I wrote is not being accepted by the Orchestrator.

@7e0cf1013f6538ba590f9f391

0 8-18 * * 1-5 # Every hour between 08:00 and 19:00 on weekdays (Monday to Friday)
0 8,13 * * 6-7 # At 08:00 and 13:00 on weekends (Saturday and Sunday)

Hi @7e0cf1013f6538ba590f9f391

To run the bot on weekdays use the below cron:

0 0 8-19 ? * MON,TUE,WED,THU,FRI *

To run the bots on weekends:

0 0 8-13 ? * SUN,SAT *

For more information check from below website
Free Online Cron Expression Generator and Describer - FreeFormatter.com

Regards

@rlgandu @vrdabberu I think these statements are wrong, they are not accepted.

“0 0 8-19 ? * MON,TUE,WED,THU,FRI *” This expression gives an incorrect expression when I save it.

Hi @7e0cf1013f6538ba590f9f391

`

`
0 0 8-19 ? * MON,TUE,WED,THU,FRI *

0 0 8-13 ? * SUN,SAT *

Regards,

@7e0cf1013f6538ba590f9f391

What is the error you are getting?

Regards

image

Hi @7e0cf1013f6538ba590f9f391

Try the below one to run the bot on week days:

0 0 8-19 ? * 2-6 *

Regards

Hi @7e0cf1013f6538ba590f9f391

I think you are giving the cron expression in the double quotes. If yes, please remove the double quotes and the directly give the cron and click on the update so that you can succesfully create the timetrigger.

0 0 8-19 ? * MON,TUE,WED,THU,FRI *

Regards

@7e0cf1013f6538ba590f9f391

0 0 8-13 ? * SAT,SUN

@7e0cf1013f6538ba590f9f391

You can use this to generate any expression you need

And for your requirement it is two crons

Weekdays - 0 0 8-19 ? * MON,TUE,WED,THU,FRI *

Weekends - 0 0 8-13 ? * SUN,SAT *

Cheers

Hey @7e0cf1013f6538ba590f9f391
this can’t be done in one cron.
But you can always use 3 separate triggers:

  • For hourly runs between 08:00 and 19:00
    0 0 8-19 ? * MON-FRI *
  • For a run at 08:00 AM on weekends
    0 0 8 ? * SAT,SUN *
  • For a run at 13:00 PM on weekends
    0 0 13 ? * SAT,SUN *
    image

Hi @7e0cf1013f6538ba590f9f391

To run the bot on weekdays use the below cron:
0 0 8-19 ? * MON,TUE,WED,THU,FRI *

To run the bots on weekends:
For 8:00 AM
0 0 8 ? * SUN,SAT *
For 1:00 PM:
0 0 13 ? * SUN,SAT *

Regards