Cron job

How can create a schedule for test bot that runs from 1st Sept 2024 - 11 Oct 2024 in orchestrator using time trigger or cron job if possible

Hi @chandresh_agarwal

Is it supposed to run daily once or hourly or how or if there’s a specific time when to run this?

You can use this:

0 0 1-11 9,10 * 2024

This will ensure the process runs daily at midnight from September 1, 2024, to October 11, 2024.

Thanks

I need to run it daily at 2 hrs of interval

Hi @chandresh_agarwal

Please try the below Cron Expression

0 0/2 1-11 9,10 * 2024

It states that Every 2 hours , between day 1 and 11 of the month Sept and oct
I want from 1st sept to 11 oct like tthat…it is taking only 1-11 days of both the month

hi @chandresh_agarwal

That would be

0 */2 1-11 9,10 * 2024

this cron expression will run a process every 2 hours at the 0th minute, from the 1st to the 11th of September and October in the year 2024.

hi @chandresh_agarwal

if that is the case let’s simplify:

Create two Schedules using the below Cron Expressions:

For September: 0 */2 1-30 9 * 2024
For October: 0 */2 1-11 10 * 2024

That shouldn’t be a problem.

Hi @chandresh_agarwal,

This can only be achieved using Cron and ‘Schedule automatic trigger disabling’ feature in Orchestrator.

0 0 0/2 * 9,10 ? 2024 It will execute the job from 1st sept to 31st Oct but with ‘Schedule automatic trigger disabling’ feature it will be disabled automatically after 11th Oct.

Regards,
Ranjith Udayakumar