Describe the problem/error/question
The code node keeps executing infinitely. I tested it in another workflow with simulated information and it worked, but in the main workflow it just keeps executing infinitely. I tried adding this 30s sleep, but it stayed the same. All other information exists, and the output from previous nodes is ok.
What is the error message (if any)?
there is no error message anymore, just infinite execution. Before I put the environment variable, I got this error:
Task execution timed out after 300 seconds
The task runner was taking too long on this task, so it was suspected of being unresponsive and restarted, and the task was aborted. You can try the following: 1. Optimize your script to prevent long-running tasks, e.g. by processing data in smaller batches. 2. Ensure that all paths in your script are able to terminate, i.e. no infinite loops. 3. If your task can reasonably take more than 300 seconds, increase the timeout using the N8N_RUNNERS_TASK_TIMEOUT environment variable.
Please share your workflow
Information on your n8n setup
- n8n version: last
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: Arch Linux