 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
laiko
Joined: 11 Feb 2010 Posts: 43 Country: India |
|
How to force abort all jobs in a queue |
|
Hi,
If I have 10 jobs in the queue and 5 are running in parallel, if one fails, I'd like all the jobs running in the queue to fail or stop running/waiting. How do I do that? All my 10 jobs are running in the remote agent (unix box).
Thanks in advance..
|
|
Tue Mar 09, 2010 10:32 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Write a job script to be trigger on "error" event of each of these jobs. In the script code some logic to check whether other jobs are running, and if yes, kill them.
Just as an idea, the command console (cons.sh or cons.bat depeding on the OS) can be invoked programmatically from a job with I/O redirection. Tell the console to print the job monitor ("monitor" command). In the printed out lines, find jobs with running status. Choose which ones you want to kill, tell the console to kill them ("kill" command.
|
|
Tue Mar 09, 2010 10:46 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|