How do I stop a background script from running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2021 05:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2021 09:16 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2021 09:18 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2021 09:35 PM
Hello Priyanka,
Go to Active Transactions then kill your background script, it will stop
Regards,
Vaishnavi Lathkar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2021 10:15 PM
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