-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(core): Introduce concurrency control for main mode #9453
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
✅ All Cypress E2E specs passed |
|
✅ All Cypress E2E specs passed |
Got released with |
1 similar comment
Got released with |
This PR introduces concurrency control for main mode. This limits how many production executions are allowed to run at the same time in main mode, preventing event loop overload and so improving reliability.
Concurrency control applies only in main mode and only to production executions (i.e. in
webhook
andtrigger
modes), not to executions inmanual
,retry
,error
,integrated
,cli
orinternal
modes.Summary of changes
Queuing
ConcurrencyControlService
.ConcurrencyQueue
.ActiveExecutions
.startedAt
timestamp.running
overnew
Envs, logs, tests
N8N_CONCURRENCY_PRODUCTION_LIMIT
.ConcurrencyControlService
andConcurrencyQueue
.Discussion: https://www.notion.so/n8n/Concurrency-limits-for-main-mode-8b642df5e98a479cadd1cfc4950d27a1
Follow-up to: #8458