Deleted queries keep triggering failure event handlers

Hi Retool Team,

I had a query in my apps that was timing out and I made some performance adjustments by creating separate queries. I ended up deleting this original query. This query had a failure event handler which would add a record and send me an email (via retool email) with the details.

However, now that the query has been deleted and new versions of the app released I keep getting the emails any time users use the app. Meaning the query is still running (which triggers a workflow) even though it doesn't exist anymore.

Not sure how to address this and any guidance from the team would be helpful!

Hi @MiguelOrtiz,

I haven't seen this before :thinking: but here are my initial thoughts/questions

  1. Is there anything in the Workflow run history that shows it was being triggered?
  2. If you export the app and search for the query name do you see any clues in the app state? Happy to take a look as well
  3. Is the app using release management - curious if users are accessing an older version of the app?
  4. Is this a multipage app or an app with a module? Curious if a similar query is being triggered on another page/module/etc
  5. Do you see anything in the audit logs for the query? Or, could you DM me the name of the query?