mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
perf(core): Introduce concurrency control for main mode (#9453)
This commit is contained in:
@@ -317,8 +317,12 @@ export class Worker extends BaseCommand {
|
||||
Worker.jobQueue = Container.get(Queue);
|
||||
await Worker.jobQueue.init();
|
||||
this.logger.debug('Queue singleton ready');
|
||||
|
||||
const envConcurrency = config.getEnv('executions.concurrency.productionLimit');
|
||||
const concurrency = envConcurrency !== -1 ? envConcurrency : flags.concurrency;
|
||||
|
||||
void Worker.jobQueue.process(
|
||||
flags.concurrency,
|
||||
concurrency,
|
||||
async (job) => await this.runJob(job, this.nodeTypes),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user