Technology Questions 

 

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-20-2007, 02:30 AM
wuschba
Newsgroup Contributor
 
Posts: n/a
task scheduler doesn't start delayed task

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-20-2007, 02:30 AM
  #2 (permalink)  
Old 07-20-2007, 07:10 AM
PaulB
Newsgroup Contributor
 
Posts: n/a
RE: task scheduler doesn't start delayed task

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


"wuschba" wrote:
[color=blue]
> 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
>[/color]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-20-2007, 11:10 AM
Jimmy Brush
Newsgroup Contributor
 
Posts: n/a
Re: task scheduler doesn't start delayed task

Hello,

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

Also, do you get any errors in the log when you click on the history tab
on the properties screen for the task?

- JB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 07-20-2007, 10:10 PM
wuschba
Newsgroup Contributor
 
Posts: n/a
Re: task scheduler doesn't start delayed task

Thanks for your replys!
[color=blue]
> Does the task require elevated permission to run? Try checking "run with
> highest privileges".[/color]
I just added this - lets see if it works.
[color=blue]
> Can you export the task to a file, open the file, copy the contents and
> paste it into a reply?[/color]
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>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 07-21-2007, 01:50 AM
wuschba
Newsgroup Contributor
 
Posts: n/a
Re: task scheduler doesn't start delayed task

I forgot: There is no entry at all in the log since the last time the task
was started.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 07-21-2007, 10:30 PM
wuschba
Newsgroup Contributor
 
Posts: n/a
RE: task scheduler doesn't start delayed task

> Does the task require elevated permission to run? Try checking "run with[color=blue]
> highest privileges".[/color]
Still doesn't start, and still no entries in the log.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 07-23-2007, 03:30 PM
Jimmy Brush
Newsgroup Contributor
 
Posts: n/a
Re: task scheduler doesn't start delayed task

wuschba wrote:[color=blue]
> I forgot: There is no entry at all in the log since the last time the task
> was started.[/color]

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 07-26-2007, 12:12 AM
wuschba
Newsgroup Contributor
 
Posts: n/a
Re: task scheduler doesn't start delayed task

> Unless I am misunderstanding something (entirely possible), this appears[color=blue]
> to be a bug...
>
> I will file a report with Microsoft and see what comes of it.[/color]
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista 6 07-11-2007 01:10 PM
Task Scheduler DaveN Windows XP 3 07-02-2007 09:30 AM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista 0 06-06-2007 06:00 PM
Task Scheduler fails to start Paul Woodsford Windows XP 7 02-03-2007 03:30 PM
Task Scheduler K Windows XP 6 01-04-2007 04:41 AM


New To Technology Questions? Do You Need Help?

All times are GMT -8. The time now is 06:25 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0