Hello everyone!
I’m currently facing an issue with one of my workflows that seems to sometime be stuck in an infinite loop, and I can’t figure out what’s causing it.
I’ve set up a workflow that uses a loop node that splits in batches my flow to make http calls. (I split in batches because my http calls are pretty big and breaks n8n if all the calls are made at once)
I tried to add a wait node at the end to add time between the loops, I tried to add an if node with " {{ $node[“Loop Over Items”].context[“noItemsLeft”] }} is false" But nothing fixed the issue.
I said sometime because, the flow is triggered automaticaly every day at 5am and some days it works and some others, the infinit loop accumulates too much data from i don’t know where and the memory runs out and the container shuts down.
I tried to add a wait node at the end to add time between the loops, I tried to add an if node with " {{ $node[“Loop Over Items”]. context[“noItemsLeft”] }} is false" But nothing fixed the issue.
I said sometime because, the flow is triggered automatically every day at 5am and some days it works and some others, the infinite loop accumulates too much data from I don’t know where and the memory runs out and the container shuts down.
I’m sorry, I’m new to n8n and don’t really know what to add to get better help.
Thanks to all who will read me
Information on your n8n setup
- **n8n version:**1.84.1
- Database (default: SQLite): ?
- n8n EXECUTIONS_PROCESS setting (default: own, main): ?
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- **Operating system:**synology