Uncheck unwanted settings

28 views
Skip to first unread message

wakr...@gmail.com

unread,
Oct 16, 2018, 12:46:11 PM10/16/18
to Task Scheduler Managed Wrapper
Hello,

Is there a way that I can uncheck the following settings options 


settings.jpg

I am looking at TaskSettings objects and I can see the property ExecutionTimeLimit that takes TimeSpan (default is 3 days). However I would like to uncheck

- Stop the task if it runs longer than... 

- If the running task does not end when requested, force it to stop

wakr...@gmail.com

unread,
Oct 16, 2018, 1:24:11 PM10/16/18
to Task Scheduler Managed Wrapper
I just found the answer:


To uncheck "Stop the task if it runs longer than..." I set ExecutionTimeLimit = new TimeSpan(0);

To uncheck "If the running task does not end when requested, force it to stop"  I set AllowHardTerminate to false;
Reply all
Reply to author
Forward
0 new messages