Flow constantly running

All of a sudden my workflows are just ‘running’. They’re all based on web hooks, when I send the workflow to the test url it and watch it - it works fine. When I send it to the live URL, the expected actions of the workflow are running but it’s constantly stuck in this ‘running’ state and that ID number of the execution keeps going up and up until I pm2 kill n8n.
I’ve upgraded N8N, recreated the workflow, but it’s happening with every workflow now. Any ideas?

I’m unable to stop those executions - it just comes up with an error. If any of them do retire, the status changes to ‘unknown’ and I’m unable to open the execution.

Quite strange. What version of n8n are you running?

Panic over! I haven’t broken N8N! :relieved:
One of the webhooks from another app was returning an error but with a 200 code, presumably confusing n8n. Strange that it kept trying new executions though, it once went up to 20,000 executions, but they’ve thankfully gone after restarting n8n

I am happy that you figured out the issue. I would suggest you add an IF node that checks for the incoming response from that service. If the incoming response is something that you need you can continue the workflow, otherwise stop the execution.


I always do this for my workflow.

In my use case:

IF Node will be quite helpful when you check payments status from WooCommerce Trigger, Because it’ll directly process the flow without checking the payment status.

Here is what I did. Once the Trigger starts. I’ll wait for 30 Seconds (Title says 2 mins lol. I didn’t changed) the WooCommerce Node will check for the Payment status with the Order ID got from the Trigger.

IF Node checks the payment status. If PAID, It goes to True branch. If False, then It runs again. (I divided the IF node into two parts. Check Status is for Cancelled Order)

Imagine, If the Cancelled order keep running the workflow. :frowning_face:

:crown: IF node is king

Thanks @harshil1712 , it was actually a loop in the python app that continously sent back json packages to N8N. Unfortunately the json being sent was always the same but used the IF function in the python app instead. IF statement has been really helpful though, I avoided it as kept getting notifications of failed workflows until I found the ‘DO NOTHING’ node. N8N rocks! :love_you_gesture:

1 Like

Thank You very much for sharing this.