How to stop an infinite loop

amaradiswamy
Kilo Sage

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

14 REPLIES 14

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.


manikorada
ServiceNow Employee
ServiceNow Employee

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.


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


Kalaiarasan Pus
Giga Sage

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.


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