refactor(core): Add deprecation notice for own mode (#6195)

* refactor: Add deprecation notice for own mode

* Undo default value change
This commit is contained in:
Omar Ajoue
2023-05-08 15:03:44 +02:00
committed by GitHub
parent b499d27f08
commit 1da71645f2
2 changed files with 6 additions and 1 deletions

View File

@@ -62,6 +62,11 @@ export abstract class BaseCommand extends Command {
'Support for MySQL/MariaDB has been deprecated and will be removed with an upcoming version of n8n. Please migrate to PostgreSQL.',
);
}
if (process.env.EXECUTIONS_PROCESS === 'own') {
LoggerProxy.warn(
'Own mode has been deprecated and will be removed in a future version of n8n. If you need the isolation and performance gains, please consider using queue mode.',
);
}
this.instanceId = this.userSettings.instanceId ?? '';
await Container.get(PostHogClient).init(this.instanceId);