how to check and stop background script?

Aanchal Mehndi1
Giga Contributor

I wrote one background script, but seems it keeps on running.

How can I stop it?

8 REPLIES 8

If its a background script then cancel_my_transactions.do should end it.



You can also navigate to 'All Active transactions' and kill the job which is running.


-Anurag

ismailsn
ServiceNow Employee
ServiceNow Employee

As mentioned above - cancel_my_transactions.do will kill the script a majority of the time. Another option would be to go to the active transaction module and kill the transaction, however please note, this module will only show active transactions for the node you are logged on.



Regards,



Ismail Aydemir


It might be worth mentioning that a user can determine what node they are on by looking at stats.do.


Just type "stats.do" in the Application navigator and take a look through the output


Also the running job should be visible in stats.do/threads.do



If the user has a small number of nodes, 2 say, then the user can usually get a session on both nodes by logging in more than once, using a anonymous web browser tab.


Usually this just takes a minute or two - longer of course if you have more (primary) nodes.


So, a user can often find a transaction and kill it using the approach above.


Marcin20
Mega Guru

Hi,

You can also use:

System Diagnosis / Active Transactions (All Nodes)

and kill the selected transaction.