Hi
What exactly should happen when a job scheduled to run every hour
sometime takes more than hour to complete?
If it is documented, please pint me in the right direction.
TIA, Eugene
It all depends on what the task was scheduled to do. If the task was
running simple commands that can be run concurrently the second task
would start on the hour and run concurrently with the first one.
On the other hand if the task was running commands requiring exclusive
access on objects the second task set to start on the hour would fail
silently.
For example:
The ping command is a simple command which can run concurrently with
another ping command, you can run multiple instances of the command at
the same time. You could ping the localhost for 5 minutes (PING -n 300
127.0.0.1>nul) and have the task run every minute for five minutes and
all five tasks would start and complete, the tasks would run concurrently.
On the other hand a command like chkdsk which places an exclusive lock
on a volume cannot run concurrently with another chkdsk on the same
volume. If you wanted to run chkdsk /r on a data disk the first task
would place an exclusive lock on the disk and the second task would not
be able to gain access to the disk so it would fail silently. The same
would happen with other commands which lock objects, for example a task
might get an exclusive handle on a file and lock it and the second task
would be unable to gain access to the file so it would fail. You can
take a look at the Scheduled Task log file to see if the tasks started
and completed without errors.
John