Can we Stop a Scheduled Job if the Previous Scheduled Job is exceeding the time limit?

Hi All,

A big thanks to read my query…
Scenario:

I have scheduled a job in such a way that it will run every 30 min.
So if the previous job took more than 30 min then the next job status will be Pending right…(Assume we are running the jobs in the same machine)
My requirement is, I want to Kill the second job which was in Pending State due to the excess time conceived by the 1st Job.
Adding to that the next schedule which is after the cancelled job should be running.
So it is basically just skipping the job once the time limit have been breached and then executing the next available Job.

Kindly revert for further clarifications.

And Im really looking forward with this…

Thanks
NJ

@Nikhil_Jose - i guess no option to cancel the pending job when it created through a scheduler… but once the current job complete… the pending job will auto start and execute…

you can try below to handle the jobs…

in init of your process - check the process -> robot job status… with orchestrator api request… bases on the response status of the job… you can decide to continue the process or move to end state…
if job status complete - execute the job
if its running - you can redirect to end state of the job…

below orchestor api reference -