cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop running task after certain time

Mahesh7225
New Contributor

How to stop running task after certain time

I have scheduled job every day but want to stop that job after certain time(eg.after 4hrs) on every day.

8 REPLIES 8

koryknick
Employee
Employee

I believe you are looking for the TImeout setting of the Task:
image

Agreed with @koryknick

@Mahesh7225: What time your job has been scheduled? How would you want to stop that? 4hrs after the execution or 4hrs after trying to run that job?

Thanks!

i have scheduled job every day at eg. 2pm and after job started it should automatically stop at 5pm on that day, but next day it should be start at 2pm as per schedule

@Mahesh7225: If you can share more details, why would you want the job to stop at 5pm ONLY? Does it run for 3hours from 2pm-5pm?

Also, if the requirement is to run at 2pm everyday, why don’t you go with Cron Schedule, I’m pretty sure you’re using the same, can you please confirm?