Question
· Feb 18, 2021

Can I get currently running Jobs on a particular business host and hold them in a variable

I am working on automating to pick all the jobs running particular business process and kill them by using a routine. Though I was able to kill the jobs/PID on server by using (sudo kill jobid) and by using  do $SYSTEM.Process.Terminate(jobid) or  Do ##class(Ens.Job).UnRegister("buseiness host"jobid), I am looking to build a routine by setting a variable with all the business process names and then fetch the jobid or PID associated with those business process and kill them. Any help is highly appreciated.

Product version: HealthShare 2017.2
$ZV: 70626DDA-3A37-11E5-A37C-5056AB681A00
Discussion (3)0
Log in or sign up to continue