Is there a way to stop all server side queries if there is a loop?
I was creating cursor based pagination query and I made a mistake where i went into an endless loop for some reason. Eventually I exited the app and re-entered but in order to be a good citizen on a SaaS app, I wanted to:
- make sure exiting the app destroyed any in process services and memory
- find out if there is an elegant way to halt the program interactively
Are you looking to stop a process on your external server or specifically on Retool's backend? Would you mind sharing the code that caused the infinite loop?
I'd love a "restart" backend button. Right now the whole app is crashed. i accidentally added an infinite while loop that didn't stop - now after a refresh of the page nothing is showing.
ps. duplicating the project didn't help, I don't see any of my UI - it's crazy I've worked on it for 3 days and now it's gone. @Kabirdas