Got stuck in an Infinite Loop. Any way to hard stop a workflow from executing?
Hi. I was testing a workflow while creating it and got stuck in an infinite while loop.
It was a panic situation as every time it looped an External API Request was being called and I desperately needed a manual way to interrupt the workflow to stop it.
In this instance, I changed the API Key of the external endpoint in the environment variable which I think resulted in exiting from the Loop.
However, I would like to know if there is a way to hard stop the workflow from executing in such a scenario. Might help if something goes wrong again.
Best Answer
-
Hi @rupesh there isn't currently a way to force stop a loop once it has begun execution. However, we do have infinite loop detection and we will throw an error if we detect one to prevent it from running
Answers
-
Thanks for your reply. A force stop button somewhere inside Run & Debug will be helpful.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback