N8n REST Socket Hang Up Issues

Hey @samaritan

In fact when n8n is under heavy load the main process might become unresponsive especially if you’re calling the executions-current endpoint multiple times, since when running in queue modes it must:

  1. Connect to queue system to check current executions
  2. Cross that with your user ID to check what are your permissions
  3. Get the execution data from database
  4. Return this to you

This ends up being very heavy and unfortunately there is no way to scale the main process but there is still hope.

There is a topic with a similar request that was solved using a Redis instance to act as a semaphore. You can find out more about this here: Deny simultaneously workflow execution / Don't execute if workflow is running

I believe this might help you.

2 Likes