Create a schedule for every 20 min between 4:30 AM to 5:30 AM

I am trying to create a trigger between 4:30 AM to 5:30 AM every Monday to Friday.
Cron: “0 30/20 4-5 ? * 2-6” is working but it will create additional run at 5:30AM & 5:50 AM which is not required.
Required is only 3 runs 4:30 AM, 4:50 AM, 5:10AM.
Any leads?

Hi @shantanu.khaladkar,

use this website, i always use this one.

Tried but not helping.

if your time interval ends with a minute e.g. 5:30 then you need to combine multiple crontab expressions to achieve your requirement, but im not sure if this is possible in Orchestrator.

If you stick with “0 30/20 4-5 ? * 2-6”, You can combine it with a workaround where you can use an asset to restrict the number of times it runs,
e.g. When your process starts check if the asset = 3, if < 3 you can run, otherwise end the process. This way it will run 4:30 AM, 4:50 AM, 5:10AM, it will also run 5:30AM and 5:50AM but will end immediately since the value of the asset = 3

Try this

0 20-20 4:30,5:30 ? * SUN,MON,TUE,WED,THU,FRI *

this is not valid cron expression.

thank you for reply @jack.chan, definitely we can do this with logic in code but I want to understand if this is possible in cron trigger or not

I think you can create two schedules with 2 different crontriggers . This way it will just run at 4:30.4:50, 5:10 tue-sat. Is this ok?

10 5 ? * 2-6 =At 05:10 AM, Tuesday through Saturday
30,50 4-4 ? * 2-6 =AT 4:30 and 4:50 Tue-Sat

1 Like

use stop job after or disable trigger at specified times which you do dont want to run in the triggers section in the orchestrator

Thank you for response but this won’t work.

i got it it is only asking for a specific date to disable the trigger and not working repetitively…
i’m not sure if we can create multiple triggers on the same process. If it is possible instead of using
“0 30/20 5 ? * 2-6” we can use two triggers one with “0 30/20 4 ? * 2-6” and the other at “0 10 5 ? * 2-6”

1 Like