How do you kill/cancel/stop a Performance Analytics Job instance?

Michael Zglesze
Giga Expert

Hello Community!

How do you kill/cancel/stop a Performance Analytics Job instance?

Here's the situation:  I'm either building or testing things that I've built in Performance Analytics, and when I go to run the Historical Job to pull the last year or two of data, I see that one or more errors pops up immediately.  I look at the error, fix the error in under two minutes, but the current instance of that job continues to run, sometimes for hours, competing with any other jobs that are currently running, which may include another instance of the same newly-fixed job.

What is the solution to stopping a currently-running instance of a Performance Analytics job?

Thanks!

1 ACCEPTED SOLUTION

chris_lo
ServiceNow Employee
ServiceNow Employee

Hello Michael,



Terminating the job would entail that you know which specific app-node the job is running on. Customer's do not have access to check specific nodes so the best thing would be to contact support. Jobs on ServiceNOW run on scheduled workers so you would first need to be on the right node that is running the job and then you would need to validate that the job is running on one of the workers from that node. From here we would be able to kill the transaction from the 'All Active Transactions' module under the User Administration application menu. If you happen to manually execute the job you would then be able to see the job running from the stats page. You would also be able to see the transaction from the 'All active transactions' module. This only works if you run the job manually as the job would then execute from the node that you are on. Hope this helps.



-Chris



Sr. Technical Support Engineer


View solution in original post

11 REPLIES 11

sowmya123
ServiceNow Employee
ServiceNow Employee

go to performance analytics -> job logs and open the job you are running and delete the job


Tara Romero
ServiceNow Employee
ServiceNow Employee

When you kill the job by deleting it, the job still runs in the back end and will continue to consume resources.   I will check with one of our developers to see what script they use to kill it and get back to you.   Thanks!


Hi tara.romero


could you please share if there is another way to kill jobs,


I am trying to terminate for CMDB Health jobs


Thanks!


chris_lo
ServiceNow Employee
ServiceNow Employee

Hello Rafal,



The method I mentioned only works if you are doing it from the same node where the job is running. The best option I would recommend is that if you cannot terminate the job please contact support to do it for you. Thanks.



Sr. Technical Support Engineer



Chris