How do I stop a background script from running

Priyanka Mathur
Tera Contributor

Hi Experts,

How can I stop a background script from running.

find_real_file.png

Regards,

Priyanka

23 REPLIES 23

Hi Priyanka, 

It certainly depends on how many records you were updating at that time. I would like to believe you have setWorkflow to false but if not - it would go about updating the fields like updated by, updated time and run other business logics as well. 

It may take a few minutes if the number of records are small but can go upto an hour or so if the record numbers are high. This is what I'm aware of and hope it helps. 


Regards,
Akshay.

The SN Nerd
Giga Sage
Giga Sage

If this is an ongoing issue, you may need to raise a support call.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Vaishnavi Lathk
Mega Sage
Mega Sage

Hello Priyanka,

Go to Active Transactions then kill your background script, it will stop

Regards,

Vaishnavi Lathkar

H_9
Giga Guru

Hi,

 

The quickest way to cancel any script/transaction from running is by going to the URL and the type cancel_my_transaction.do after your instance url.

ex:

https://<devInstanceName>.service-now.com/cancel_my_transaction.do

This will execute an operation to cancel current script/operation/transaction.

 

Please mark the answer as correct if it helps. 🙂

 

Thanks,

Harshwardhan

Thanks. 🙂