Kill a "currently running" job

All questions about Control-M jobs definitions
Post Reply
User avatar
GregE
Nouveau
Nouveau
Posts: 15
Joined: 02 May 2011 12:00

Kill a "currently running" job

Post by GregE » 03 Mar 2015 6:46

If I have a job that runs every 5 minutes pending the completely of a previous run, is there a way to put a time limit on the job? We've had situations where a client server application has had an outage, but the CM job running against that application at the time of the outage shows "currently running" in the sysout, and will remain that way until it's manually killed. That creates a business problem since these need to run every 5 minutes.

Any way to get around this?

User avatar
anirudhrh
Nouveau
Nouveau
Posts: 48
Joined: 21 Sep 2013 12:00

Re: Kill a "currently running" job

Post by anirudhrh » 05 Mar 2015 7:47

how about using the tolerance option
Anirudh

User avatar
sharas
Nouveau
Nouveau
Posts: 76
Joined: 13 Nov 2007 12:00
Location: Hyderabad
Contact:

Re: Kill a "currently running" job

Post by sharas » 18 Mar 2015 4:29

Hi

You could send an outage if the job is running longer than expected time to send a SHOUT to a script on Control-M server which in turn runs a ctmkilljob utility . Please note you could also pass order id as parameter in SHOUT .

usage: ctmkilljob
[ -ORDERID <unique order ID> ]
[ -NODEID <name> ]
[ -MEMLIB <path> ]
[ -MEMNAME <filename> ]
[ -JOBNAME <name> ]

Thanks
Sharas

Post Reply