Forum Discussion
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
- darshthakkar3 years agoValued Contributor
@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?
- darshthakkar3 years agoValued Contributor
Here is the snap of the cron job for your reference:
Again, I’m not sure whether you have been using this or not, sharing it ahead of time if this is what you were looking for.
- darshthakkar3 years agoValued Contributor
Also, to reiterate @koryknick’s point, timeout works every single time. Please ensure that timeout is in minutes so if you want the job to stop after 3hours, you put 180m in there.
I have never faced any issues with Timeout yet so you may want to try that out again and requesting you to share the screenshots of the what you have kept and email notification received even after timeout was set correctly but didn’t work (this is a very strange behavior and I’m inclined to believe that timeout will work 100% everytime)
Thanks!