Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > task scheduler doesn't start delayed task

Reply
Thread Tools Display Modes

task scheduler doesn't start delayed task

 
 
wuschba
Guest
Posts: n/a

 
      07-20-2007
Hi. I have a simple console-application which I plan to run every day on 6
am. So I added this task to the task planer. Since I don't know if the
computer has already been turned on at 6 o'clock, I checked "run task as soon
as possible after a missed start" (I hope the translation is correct and you
can imagine what I mean), which is exactly what I want.

But this simple doesn't happen. This morning for example, I turned on the
computer on about 7 o'clock and the application was not started:
Last time running: 2007-07-19 06:00:00
Next time running: 2007-07-21 06:00:00

Any idea about that? I got no entry in the task schedulers event-log, so I
got no idea what to do?!

My additional settings are:
- run only if user is logged on
- I didn't check anythingin the conditions-page
- task can be started on demand + run task as soon as possible after a
missed start + end task if it runs longer then 3 days

 
Reply With Quote
 
 
 
 
PaulB
Guest
Posts: n/a

 
      07-20-2007
Does the task require elevated permission to run? Try checking "run with
highest privileges".
--
Paul


"wuschba" wrote:

> Hi. I have a simple console-application which I plan to run every day on 6
> am. So I added this task to the task planer. Since I don't know if the
> computer has already been turned on at 6 o'clock, I checked "run task as soon
> as possible after a missed start" (I hope the translation is correct and you
> can imagine what I mean), which is exactly what I want.
>
> But this simple doesn't happen. This morning for example, I turned on the
> computer on about 7 o'clock and the application was not started:
> Last time running: 2007-07-19 06:00:00
> Next time running: 2007-07-21 06:00:00
>
> Any idea about that? I got no entry in the task schedulers event-log, so I
> got no idea what to do?!
>
> My additional settings are:
> - run only if user is logged on
> - I didn't check anythingin the conditions-page
> - task can be started on demand + run task as soon as possible after a
> missed start + end task if it runs longer then 3 days
>

 
Reply With Quote
 
wuschba
Guest
Posts: n/a

 
      07-21-2007
Thanks for your replys!

> Does the task require elevated permission to run? Try checking "run with
> highest privileges".

I just added this - lets see if it works.

> Can you export the task to a file, open the file, copy the contents and
> paste it into a reply?

Here it comes:
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2"
xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2007-07-16T10:47:06.1131602</Date>
<Author>MyComputer\MyUser</Author>
<Description>Run every day at 6 o'clock</Description>
</RegistrationInfo>
<Triggers>
<CalendarTrigger id="81ca0caf-34e6-49d7-9d4b-556dd37f9dae">
<StartBoundary>2007-07-16T06:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>MyComputer\MyUser</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>true</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>G:\Debug\MyConsoleApp.exe</Command>
<Arguments>-a</Arguments>
</Exec>
</Actions>
</Task>

 
Reply With Quote
 
wuschba
Guest
Posts: n/a

 
      07-21-2007
I forgot: There is no entry at all in the log since the last time the task
was started.
 
Reply With Quote
 
wuschba
Guest
Posts: n/a

 
      07-22-2007
> Does the task require elevated permission to run? Try checking "run with
> highest privileges".

Still doesn't start, and still no entries in the log.

 
Reply With Quote
 
Jimmy Brush
Guest
Posts: n/a

 
      07-23-2007
wuschba wrote:
> I forgot: There is no entry at all in the log since the last time the task
> was started.


Hello,

I can confirm that I get the same experience on my machine - task does
not start, no log entries.

I tried changing some different settings as well and I could not get the
behavior alluded to in the help file where it would start the task after
a delay of 10 minutes if it missed the start time, "for instances, if
the computer was turned off".

Unless I am misunderstanding something (entirely possible), this appears
to be a bug...

I will file a report with Microsoft and see what comes of it.

- JB

 
Reply With Quote
 
wuschba
Guest
Posts: n/a

 
      07-26-2007
> Unless I am misunderstanding something (entirely possible), this appears
> to be a bug...
>
> I will file a report with Microsoft and see what comes of it.

Thanks for your confirmation and the report. Actualy, it worked for me
exactly one time on thuesday, but wednesday and today: not effect, altought I
didn't change anything.

Please place the URL of the report so we could vote for it.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Task Scheduler repeat task duration bug? sm02463 Windows Vista General Discussion 4 12-06-2008 06:40 PM
Task scheduler returns an error : the task image is corrupt ortamp Jean-David Windows Vista Performance 2 05-03-2008 02:02 PM
Task Scheduler wont start samng Windows Vista Administration 3 08-17-2007 02:14 AM
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista General Discussion 6 07-11-2007 09:01 PM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista General Discussion 0 06-07-2007 01:51 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59