In addition, you have to schedule the task once for each attempt, which means added complexity
PROVIDING FAULT TOLERANCE FOR AN AFTER HOURS BATCH OR SCRIPT 221
in managing Task Scheduler. Of all the options, the one least likely to fail is alerting the administrator,
but now you have to disrupt someone??™s evening and possibly get them out of bed to restart
an application that would have run the second time using a simple batch file or script loop. In short,
there aren??™t any perfect solutions, but you should decide on a policy for handling errors at the
outset.
Make sure you also have policies in place for machines that perform after hours processing. Task
Scheduler can??™t run if someone turns off the machine. Well-intentioned people can cause all kinds
of problems for your system. Imagine what would happen if someone decided to work late on a
report that requires the database and your batch file or script requires exclusive access to that database.
As part of your strategy, you might want to broadcast a message across the network telling
everyone about the outage. Make sure you include an automated broadcast message with Task
Scheduler as well.
Pages:
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552