Killing endless loop server side query

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:

  1. make sure exiting the app destroyed any in process services and memory
  2. find out if there is an elegant way to halt the program interactively

Thanks

Hey @jessvin.thomas!

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?