refactor(core): Add log about removed TTL keys for binary data (#7892)

Context:
https://n8nio.slack.com/archives/C035KBDA917/p1701418556761549?thread_ts=1701411854.517989&cid=C035KBDA917
This commit is contained in:
Iván Ovejero 2023-12-01 12:51:45 +01:00 committed by GitHub
parent 61d8aebeaf
commit 07f6662aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,16 @@ export abstract class BaseCommand extends Command {
);
}
if (
process.env.N8N_BINARY_DATA_TTL ??
process.env.N8N_PERSISTED_BINARY_DATA_TTL ??
process.env.EXECUTIONS_DATA_PRUNE_TIMEOUT
) {
this.logger.warn(
'The env vars N8N_BINARY_DATA_TTL and N8N_PERSISTED_BINARY_DATA_TTL and EXECUTIONS_DATA_PRUNE_TIMEOUT no longer have any effect and can be safely removed. Instead of relying on a TTL system for binary data, n8n currently cleans up binary data together with executions during pruning.',
);
}
await Container.get(PostHogClient).init();
await Container.get(InternalHooks).init();
}