Scheduling Agent - MaxRunTime & KillAtDurationEnd

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
jcheng
Posts: 3
Joined: Mon Jul 11, 2011 2:06 am

Scheduling Agent - MaxRunTime & KillAtDurationEnd

Post by jcheng »

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)
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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.
Best regards,
Igor Siticov.
Post Reply