I ran this script in the background and it doesn't stop running and everything is slow, how do I stop it if I can't load any pages?

1231
Tera Contributor

find_real_file.png

var gr = new GlideRecord('sc_request');
gr.query();
while(gr.next()) {
gr.u_opened_for=gr.requested_for.getDisplayValue(); 
gr.setLimit(5);
gr.query(); gr.print();
//gr.update();
}
1 ACCEPTED SOLUTION

Your current instance node is looping the script. Until it is able to clear itself by timing out you will likely need to switch nodes.

Logout of your instance and clear your browser cache. Then do a fresh login and you should get a different node. If this doesn't work you can switch nodes via browser plugins like SN Utils.

View solution in original post

15 REPLIES 15

anurampalli
Tera Guru

I hope your issue is resolved.

 

While looping through gr, you are doing a gr.query()

 

This caused the infinite loop situation.