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

I have a program that is running infinitely, and I have it scheduled to run every 10 minutes.

How to make sure that the program will not start in 10 mins, if the previous (10 min old task) task is running?

I want only one instance of the scheduled task to run, but check every 10 min if the task was stopped/finished for some reason - start it again in 10 min.

Is it possible to do with windows scheduler? If yes - how to do that?

I use Windows Server 2008 R2 Standard.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There should be a setting under the Settings tab that says

If the task is already running, then the following rule applies:

Do not start a new instance

Pair that with the Run task as soon as possible after scheduled start is missed and or Run task every 10 minutes.

share|improve this answer

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.