mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(core): Suppress MaxListenersExceededWarning in the logs (#10077)
This commit is contained in:
committed by
GitHub
parent
48f047ee2e
commit
3bbeae47f3
@@ -320,11 +320,9 @@ export class Worker extends BaseCommand {
|
||||
|
||||
const envConcurrency = config.getEnv('executions.concurrency.productionLimit');
|
||||
const concurrency = envConcurrency !== -1 ? envConcurrency : flags.concurrency;
|
||||
Worker.jobQueue.setConcurrency(concurrency);
|
||||
|
||||
void Worker.jobQueue.process(
|
||||
concurrency,
|
||||
async (job) => await this.runJob(job, this.nodeTypes),
|
||||
);
|
||||
void Worker.jobQueue.process(async (job) => await this.runJob(job, this.nodeTypes));
|
||||
|
||||
Worker.jobQueue.getBullObjectInstance().on('global:progress', (jobId: JobId, progress) => {
|
||||
// Progress of a job got updated which does get used
|
||||
|
||||
Reference in New Issue
Block a user