Microsoft Windows Vista Community Forums - Vistaheads
Driver Scanner 2009 - Free Scan Now



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Loveheart Dating - Find your Perfect Partner

task scheduler doesn't start delayed task

microsoft.public.windows.vista.general



Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Reply
  #1 (permalink)  
Old 07-20-2007
wuschba
 

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
Sponsored Links
  #2 (permalink)  
Old 07-20-2007
PaulB
 

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:

> 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
  #3 (permalink)  
Old 07-20-2007
Jimmy Brush
 

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-21-2007
wuschba
 

Posts: n/a
Re: task scheduler doesn't start delayed task
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>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-21-2007
wuschba
 

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-22-2007
wuschba
 

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".

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-24-2007
Jimmy Brush
 

Posts: n/a
Re: task scheduler doesn't start delayed task
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-26-2007
wuschba
 

Posts: n/a
Re: task scheduler doesn't start delayed task
> 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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB 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
Cant enable Task Scheduler bill microsoft.public.windows.vista.general 13 09-18-2007 15:52
Task Scheduler: Repeat Task and Duration kirsch59 microsoft.public.windows.vista.general 6 07-11-2007 22:01
Task Scheduler John Tweedy microsoft.public.windows.vista.performance maintenance 1 07-01-2007 18:04
Task scheduler problem : task do not close Junkyard Engineer microsoft.public.windows.vista.general 0 06-07-2007 02:51
HiBase Task Scheduler 2.17 VistaUtils Vista Utilities Feed 0 04-30-2007 18:00


All times are GMT +1. The time now is 13:13.


Driver Scanner 2009 - Free Scan Now

Driver Scanner 2 - Free Scan Now



Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119