mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
refactor(core): Add low concurrency warning to worker (#11762)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
parent
274fcf45d3
commit
b8c7075545
|
@ -148,6 +148,12 @@ export class Worker extends BaseCommand {
|
||||||
const envConcurrency = config.getEnv('executions.concurrency.productionLimit');
|
const envConcurrency = config.getEnv('executions.concurrency.productionLimit');
|
||||||
|
|
||||||
this.concurrency = envConcurrency !== -1 ? envConcurrency : flags.concurrency;
|
this.concurrency = envConcurrency !== -1 ? envConcurrency : flags.concurrency;
|
||||||
|
|
||||||
|
if (this.concurrency < 5) {
|
||||||
|
this.logger.warn(
|
||||||
|
'Concurrency is set to less than 5. THIS CAN LEAD TO AN UNSTABLE ENVIRONMENT. Please consider increasing it to at least 5 to make best use of the worker.',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async initScalingService() {
|
async initScalingService() {
|
||||||
|
|
Loading…
Reference in a new issue