I have updated the "stop the task if it runs longer than" to 1 min. But the task job won't terminate after a minute. What am I missing here? And the job doesn't have any triggers configured.
Asked
Active
Viewed 822 times
1 Answers
1
That's because you started the task manually ("on-demand") and not with a trigger.
The time limit is ignored when you start the task on demand as explained in the documentation:
If a task is started on demand, the ExecutionTimeLimit setting is bypassed. Therefore, a task that is started on demand will not be terminated if it exceeds the ExecutionTimeLimit.

Swisstone
- 6,725
- 7
- 22
- 32
-
Thank you. So, to achieve the termination when started on demand is to kill it? – Uday May 05 '21 at 04:44
-
@Uday Yes, or add something in the script/executable to self-terminate after a while. – Swisstone May 05 '21 at 06:18