In the process of deploying our .net application, I have about 20 scheduled tasks configured on the server, all of which basically do the same thing: call a small .net console application that retrieves data from SQL db and sends it to the web service. Each task invokes a separate copy of the application, with each copy having a different search identifier value in its configuration file.
All but two tasks are performed reliably every night. Two of the tasks seem to randomly interrupt from time to time, and this is currently a mystery about why. When they stop working, the scheduled task interface correctly displays its latest execution date, which is one day or more for other tasks that continue at the scheduled time. Tasks that have stopped working do not start again on their own, even though they are listed as scheduled to run every night. There are no errors in the event log or in the interface of the scheduled task. And hereβs the weirdest part for us: if I manually start a scheduled task, it works fine, it calls the .net console application, and everything ends without anomalies. And then it continues to function normally at the appointed time, for several days or weeks at a time, but only ultimately fails, it would seem, not in the blue. Both tasks seem to always crash that very night.
windows scheduled-tasks
David Korn
source share