WOrkflow Concurrency

Describe the problem/error/question

Hi everyone,

I need to configure different concurrency behaviors for two separate workflows running on the same n8n instance.

My requirement is:

  • Workflow 1: Must run strictly sequentially (max concurrency = 1). If triggered while running, the next execution should wait.

  • Workflow 2: Should allow multiple concurrent executions (standard parallel behavior).

Is there a native setting to limit concurrency for a specific workflow ?

If not, what is the best approach to enforce a “single thread” execution for Workflow 1?

Thanks.

Information on your n8n setup

  • n8n version: 2.1.5
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: own, main
  • Running n8n via: Docker
  • Operating system: Alpine (docker) / Ubuntu 22.04 (Host)

Hi @LuizDaniel

Great question. At the moment n8n doesn’t have a built-in setting to limit concurrency for just one specific workflow. Concurrency limits apply to the whole instance, so you can’t natively make one workflow strictly single-threaded while letting others run in parallel.

The usual approach for this scenario is to add a queue in front of the workflow that must run sequentially. Instead of processing immediately on trigger, you push each request into a queue and have a separate worker workflow consume that queue one item at a time. This guarantees that Workflow 1 runs strictly sequentially, while Workflow 2 can continue to execute concurrently as normal.

2 Likes

Hi,

Thank you for the clarification!

I understand the limitation now. I will proceed with the suggested approach and split the process into two workflows: one to handle the queueing and a separate worker workflow to process the items sequentially.

Appreciate the help.

1 Like

@LuizDaniel

I’m really happy to hear this helped :blush:
If this solution solved the issue for you, please consider leaving a like or marking the reply as the solution ( it helps others find the answer more easily and also supports community contributors.)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.