How to stop an infinite loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 06:45 AM
Hi All,
I have written a scheduled job for inserting some records into a table. At first i have written a wrong condition and this resulted into an infinite loop. I have deleted the scheduled job also and created a new scheduled job with the correct conditions. But, the logs that i have included in the script for testing are coming continuously. Is there any way to stop these type of logs.
Thanks in advance.
Regards,
swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 10:38 AM
To add to this, you can type https://<your_instance>.service-now.com/cancel_my_transaction.do into the address bar and it will also cancel the transaction currently running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 06:53 AM
Amaradi,
You can cancel the Active Transaction only running on the node you logged in.
I would suggest create an incident with Hi and they should be able to do this for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 10:22 AM
Hi Mani,
It might be worth mentioning that a user can determine what node they are on by looking at stats.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 could find a transaction and kill it using the approach above.
Best Regards
Tony

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 11:13 AM
I have seen this happening a few times. Eventually your instance will crash and the support team would need to restart the servers. Create a support ticket.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 11:42 AM
sorry i know it's old thread and i am facing same issue. i tried with above suggestion but logs are still generating in syslog table.
Please check the new thread below.
I had comment my logs but it still coming in syslog table
i have raised HI ticket . i don't understand after deleting the script logs are still generating