Page 1 of 1

Aborting a Job from within Another Server Job.

Posted: Wed Nov 23, 2005 12:48 am
by loveojha2
Hi All,

I am testing jobs of a certain category, for that I have created one server job which runs each job one by one (i.e. one after the other) through DSRunJob. My requirement is to abort a job running for more than certain time (say 20 minutes) from within the master server job. Moreover I can't modify the server jobs to be run(other than master server job). Is there anyway that I can achieve this ?

Thanks in advance.

Posted: Wed Nov 23, 2005 1:12 am
by ArndW
It is inefficient to try to hav the job itself check to see how long it has been running, but it should be an easy matter to have the starting program or any other program use a timer and, after the specified period of time is over, call dsjob to cancel the job.