Complete instance crash due to queued workflows

Our instance queued a bunch of flows to run and randomly started running them overnight, which it has never done before. We are not in queue mode and have never witnessed our instance do this before. Since it’s queueing we haven’t been able to properly access the instance or stop any of the workflows, making it near impossible to use. Has anyone experiences anything like this and know the cause or been able to fix it?

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow


Information on your n8n setup

  • n8n version: 2.29.8
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system:

Hey @Cache_A, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@kjooleng, @User1_Development - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

@Cache_A

Can you show the docker logs of the respective containers?

Hi @Cache_A, n8n can queue production executions in regular mode too. With a positive N8N_CONCURRENCY_PRODUCTION_LIMIT, runs above the limit wait for a slot.

What are EXECUTIONS_MODE and N8N_CONCURRENCY_PRODUCTION_LIMIT set to inside the container? Also, did the container restart just before those overnight runs started? n8n resumes queued executions on startup, so include logs from that time.

Hey @Cache_A To get the instance usable again while you pull those logs, set N8N_CONCURRENCY_PRODUCTION_LIMIT=5 in the container’s environment and restart. Startup re-runs every queued execution, and with a limit they go five at a time instead of all at once, so the editor should load. Then in Executions click Stop all, tick Queued and stop them, which also takes them out of the queue.

I’d first separate old executions starting late from new executions still being created. The fix depends on which is happening.

If the editor is inaccessible, start from Docker: capture the n8n container’s restart count, OOMKilled status and memory limit, with n8n/Postgres logs around the overnight incident. That may show whether a restart preceded the queued runs starting, and whether memory or database trouble contributed.

Once you can inspect executions, pick one affected workflow and use its records and queue logs to establish when those runs entered the queue versus when they started. Are they draining an existing backlog, or are new runs arriving faster than they finish? Clearing the backlog alone may only give temporary relief in the second case.

A concurrency limit can help contain the load, but I wouldn’t assume five is safe without knowing the workflow’s resource use. It also won’t tell you why the backlog formed.

Can you access Docker even while the editor is stuck? The restart/OOM status would give us a concrete starting point without needing credentials or execution payloads.

I appreciated the help. In our case these were subflows so the concurrency did not have an effect. We eventually ended up going into the db and directly deleting them.