I have scheduled a job to run after every five minute. In the ‘Actions’ tab I configure “Stop after” 35 min so the job should run for around 7 times but it never stops even after 35 min, it continue to run every 5 min.
Now to check it, I change the stop after time to 1 min only so the schedule job should not start after 5 min but again same happens.
Attached the second screenshot where i reduced the ‘stop after’ time to 1 min.
Experts out there can suggest what could be the reason here?
@humayunmalik I think you don’t quite understand the purpose of the “Stop after” function. What it does is stopping the running process (if it contains a Should Stop of course) after a certain time.
But by reading your question, I understand that you want the schedule to disable itself after 35 min, which is not possible this way.
How can i use ‘should stop’ if i need to run the script for 6 times a day and it takes 10 minutes to complete one script.
Also now what I understand is, ‘Stop After’ is used when your job is taking time to complete so you use this to stop it forcefully after specific time. Is my understanding correct now?
“Stop After” from the Orchestrator sends a stop order to a robot running a process
The “Should stop” activity in a process catches this stop order if it exists and stops the process
This is especially useful for processes that are loops, place a Should stop in the loop so that it can stop at the end of an iteration
If there isn’t any “Shoud stop” activity in your process, the stop order from the orchestrator won’t ever get caught by your process
If you want to run your process 6 times a day and you know it takes roughly 10 minutes, an easy solution would be to make 6 schedules (i.e. starting at 10:00, 10:10, 10:20, 10:30, 10:40, 10:50). Don’t worry, even if your process that started at 10:00 isn’t finished at 10:10, it will start again directly after it finished because the Orchestrator will make a “Pending” job for it.