Discussion Locked

Scheduled Task or Reoccurring Service

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Task automation requires some form of schedule job/task to run unattended. The question is,

I is it less risky to run a batch job using a job scheduler (i.e. Task Scheduler) or run the batch file as a service (i.e. SRVANY)using a delay function like the resource kit's "sleep" command?

9 replies

by ruturaj

Scheduler is a better option for a task that is not "continous" in nature i.e whch has to be run sometimes during a day or week or month or even an hour, and services are more tuned for continous task that start with the OS & end when the server is shutdown so in your case I can say that it is better to use the schedule which is
AT or if you have IE 5.01 or above the task scheduler provided by it (previous versions have issues with NT), the latter is a better choice since it is more friendly to work with.

by robrien

This answer does a great explaining what each does, where it comes from and ease of use, but it does not answer the question of risk. Both scheduler and services fail under different circumstances. To answer the question is to deliver which process is more resilient and why?

by elmagoal

No, If you set it up correctly you will have no problems and it is more effective then a batch file.

by syscokid

What do you mean by risk? Likelihood of failure? I would say that's more dependent on the reliability of your system than the method you choose.

If I HAD to make a choice, though, I'd go with task scheduling. The other way adds an extra layer of complexity: the service has to run, the batch file has to run, and the sleep command has to run. With task scheduler, there are only two things that could go wrong: scheduler and batch.

by bbrown

Less risky in the sense of failure would be using the scheduler, especially the upgrade with IE5.01. Once the job has been developed and tested to determine the user permissions required and environment needed, the scheduler should be configured to run under the login environment of an account with only the security rights needed to perform the job. This helps limit the ability of rougue jobs running under system accounts or administraive accounts and causing damage from program errors. Give the account only enough user rights to do the desired function and this decrease the risk. Running as a service, requires the account to have elevated rights that may be unneeded and uses CPU cycles wastefully.

Bobby

This discussion is closed to new replies.