troubleshoot scenario that is acting strange, keeps on running in a never ending loop. we have to force stop it or disable the scenario. It is consuming enormous credits.
What is best way to debug it.
What is the problem & what have you tried?
scenario runs in infinite loop and does not stop even clicking the stop button, so we end up disabling the scenario.
Scenario is consuming our credits like crazy, just 100 transactions in infinite loop consumed 20,000 credits and each transaction only cost 2 credits.
We set the following settings for our scenario:
max. no. of cycles to 1
number of consecutive errors to 3
max. no. of runs per minute to 100
Error messages or input/output bundles
no errors, infact i can see ton of successful transactions in the log.
but it never clears the queue and probably getting processed again.
This is a very common mistake that users make, as the mistake is not immediately apparent via the scenario editor.
An example of this is a scenario updates a record, which triggers an update event, and the external service calls the webhook from the update event.
To avoid endless iterations, especially with webhooks, ensure that your webhook is not being called on an action that one of the modules in your scenario perform. Otherwise, it basically re-triggers itself after it has completed.
To avoid this, you can either:
Ensure that the scenario does not modify the same resource that the webhook is triggered upon, and/or,
Find a way to “break the loop”, if it is possible to identify between a manual update or an update by the API, so that you can create a filter for it.
If the previous/related discussions are not similar to your question, please reply providing additional details to demonstrate the difference(s) between your question and the ones above.
If you require help understanding or implementing workarounds/solutions in the related discussions, please reply with more details of what you have tried, including screenshots.
I’d also recommend going through the Make Academy if you haven’t yet!
You can learn more about Webhooks in these Make Academy units: