Triggering an action if number of database records exceeds value

Hi,
I have a backend workflow triggered by a webhook that is somehow triggering itself after the initial trigger. I have spent all day trying to find out how it is doing this to no avail. I have now gone to bubble support to have them help me figure out what is going wrong.

In the meantime, however, I don’t want this somehow running into the night without me realizing. This webhook also triggers an API that costs money so, obviously, I don’t want these running up a huge tab.

Is there a way to cancel this webhook? I have put a counter within the webhook so I have a condition in which to trigger such action but I don’t see any action that can trigger upon the condition being true. I have looked at “Cancel a scheduled API workflow” but there is no API workflow to cancel since it’s a webhook.

So far, the only way I have found to do this is to go into the logs tab → scheduler tab and manually cancel all workflows.

I have set an email and text alert for myself but ideally bubble is doing this automatically in case I’m asleep when the alert comes in. I will be changing the API workflow name to guarantee that some external source can’t somehow trigger it in the night (as I don’t know what is causing the infinite loop i.e. it triggering itself) but this doesn’t work during the day when I need to work on the app and try and debug.

Any ideas?
Thanks
Paul

maybe have another backend workflow that changes something from a NO to a YES at a specific time, then set up the original API to trigger itself on the condition that this specific value= YES (because true is not possible to find)

Can’t you just put a condition on the API workflow?..

Why am I so dumb sometimes? Of course I can. Wow. I’m in shock.

Thanks for your help.

1 Like