09-20-2022 03:04 AM
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.
09-20-2022 05:10 AM
I believe you are looking for the TImeout setting of the Task:
09-20-2022 06:01 AM
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!
09-20-2022 06:31 AM
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
09-20-2022 06:56 AM
@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?