SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
How to force abort all jobs in a queue

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
How to force abort all jobs in a queue
Author Message
laiko



Joined: 11 Feb 2010
Posts: 43
Country: India

Post How to force abort all jobs in a queue Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.