I have a scenario for scheduling automation for below mentioned scenario:
we need to run a bot after every 5 min of its last execution end time… for example if automation end at 10:30 then it should again start at 10:35…
but we do not have fix time that when it will end
Bot need to start at 6 AM IST morning and once its execution complete then again it need to start after 5 min, and like this it needs to go till 12 PM IST.
Can someone please help how we can schedule this ??
schedule at 6 am in the morning and have a start job activity at the end of your automation or in end state to start the next job after 5 mins..have a condition to check if time crosses 12 then dont schedule else schedule it
I’m not sure whether my idea is efficient, but here is what i have in mind:
In Orchestrator:
Time Trigger of 6:00 AM IST
Setup an Event Trigger to run the process when a Mail is received.
In Workflow:
Check if Mail received to trigger the run is sent before 12:00 PM IST, if not then terminate run. (If no mail found and current Time is before 12:00 PM IST, then it the 6:00 AM Run)
Give a 5 minute delay in the beginning of the workflow.
In end of the workflow, send a Mail to start the next run.
but could you please share the activities used for starting the next job after 5 minutes. I checked start process / process start trigger but there is no option to configure after 5 minutes
In Orchestrator), create a schedule starting at 6:00 AM IST using the Cron expression */5 6-11 * * * to trigger the bot every hour between 6 AM and 11 AM. In the workflow, use the Get DateTime Now activity to check the time and stop the execution after 12:00 PM IST.
Try to use a Do While loop starting at 6 AM IST. Inside the loop, use the Invoke Workflow activity to run the bot, followed by a Delay activity for 5 minutes. Check the time with Get DateTime Now and stop the loop after 12 PM IST.
If You found helpful, feel free to mark as a solution!
a quick update as start job does not have the time change…schedule api is what we need to use via orchestrator http request..another option is add a queue item with postpone time so that the queue items become available after 5 mins…also one thing to note here the queue check time should be reduced to 5 mins if going with queue route