Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Using the Task Scheduler in Windows Server 2008 R2 or Windows 2012, etc...

What is the difference between this setting:

Stop task if it runs longer than

and this setting on the same task:

Stop task if it runs longer than

Does one take precedence over the other? Do they conflict?

share|improve this question
1  
Sounds reasonable enough here: superuser.com/questions/506662/… –  TheCleaner Jun 10 at 13:46
    
@TheCleaner Agreed ... testing as we speak :) –  Mathias R. Jessen Jun 10 at 13:58

1 Answer 1

up vote 11 down vote accepted

I have no authoritative reference but I have just tested the behavior of multiple different Stop conditions in Task Scheduler on both Windows 8.1, Server 2008 R2 and 2012 R2.

They both apply!

Whichever stop condition is met first, stops the task

The "Stop task if it runs longer than"-condition speficied in the Trigger, will only apply when the task has been invoked by that particular trigger.

The "Stop task if it runs longer than"-condition speficied for the event (on the Settings tab) is global, and will always apply, regardless of per-trigger stop conditions.

If you have a per-Trigger stop condition set to 5 minutes, and a global stop condition set to 30 minutes, you should expect the following behavior:

  • Task is invoked by the trigger - Task stops after 5 minutes
  • Task is invoked by you (right-click "Run") - Task stops after 30 minutes
share|improve this answer
    
Nice job testing this! –  TheCleaner Jun 10 at 14:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.