SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scheduling Agent - MaxRunTime & KillAtDurationEnd

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent
View previous topic :: View next topic  
Author Message
jcheng



Joined: 11 Jul 2011
Posts: 3

PostPosted: Wed Jul 20, 2011 3:14 am    Post subject: Scheduling Agent - MaxRunTime & KillAtDurationEnd Reply with quote

I want to ask about creating a task with the TTaskItem.MaxRunTime & TTrigger.KillAtDurationEnd properties.


I am trying to control the duration of the task and whether it will kill itself when the duration complete.

But I found that it has no effect no matter I set KillAtDurationEnd to true or false. The check box will still be checked when I see it by scheduler(XP), as shown in the attached GIF.

However, I found that if I set the MaxRunTime to 4294967295. It SEEMS that it would be able to disable the duration-end-killing, because the check box is no longer checked.


So, maybe you can provide me some better information of the behavior between the MaxRunTime, KillAtDurationEnd, the "Stop the task if it runs for X hours Y minutes" checkbox and whether the process really kill/not-kill itself with these settings?

Thank you very much.



(Also sent this as email to your support@sicomponents.com)
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Wed Jul 20, 2011 8:26 am    Post subject: Reply with quote

Hello,

When you set MaxRunTime to 4294967295 (INFINITE) value this indicates to Task Scheduler never kill this task. Other values always indicate to Task Scheduler to kill the task after specified MaxRunTime. Task Scheduler always kills the tasks by default.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group