# Interrupt an infinite loop in python script?

**URL:** <https://forum.inductiveautomation.com/t/interrupt-an-infinite-loop-in-python-script/87660>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [March 20, 2024, 7:32pm UTC](https://forum.inductiveautomation.com/t/interrupt-an-infinite-loop-in-python-script/87660 "2024-03-20T19:32:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Basel\_Hassan](https://avatars.discourse-cdn.com/v4/letter/b/dbc845/32.png) [@Basel\_Hassan](https://forum.inductiveautomation.com/u/Basel_Hassan)\
**Post date:** [March 20, 2024, 7:32pm UTC](https://forum.inductiveautomation.com/t/interrupt-an-infinite-loop-in-python-script/87660/1 "2024-03-20T19:32:16Z")

</div>

I have system.util.logger placed in my script and I can see I accidently created an infinite loop. Is there a way I can interrupt it? I tried restarting designer but this didnt work for me.

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [March 20, 2024, 7:59pm UTC](https://forum.inductiveautomation.com/t/interrupt-an-infinite-loop-in-python-script/87660/2 "2024-03-20T19:59:21Z")

</div>

This thread should be helpful here:

> [@While Loop in Binding does not stop the Script when removed](https://forum.inductiveautomation.com/t/while-loop-in-binding-does-not-stop-the-script-when-removed/78825/6):
>
> I thought I had been able to kill someone else's infinite loop scripts using the gateway's Status | Diagnostics | Running Scripts | Cancel. This didn't require a gateway restart as far as I can remember.
