refactor(core): Move execution save settings into lifecycle function (no-changelog) (#7370)

Move the handling of execution save settings into a tested lifecycle
function as discussed with Omar
This commit is contained in:
Iván Ovejero
2023-10-26 14:35:38 +02:00
committed by GitHub
parent 1055bd3762
commit 5477e3fb45
4 changed files with 98 additions and 48 deletions

View File

@@ -119,7 +119,7 @@ export const schema = {
},
rejectUnauthorized: {
doc: 'If unauthorized SSL connections should be rejected',
format: 'Boolean',
format: Boolean,
default: true,
env: 'DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED',
},
@@ -215,7 +215,7 @@ export const schema = {
},
onboardingFlowDisabled: {
doc: 'Show onboarding flow in new workflow',
format: 'Boolean',
format: Boolean,
default: false,
env: 'N8N_ONBOARDING_FLOW_DISABLED',
},
@@ -288,7 +288,7 @@ export const schema = {
},
saveExecutionProgress: {
doc: 'Whether or not to save progress for each node executed',
format: 'Boolean',
format: Boolean,
default: false,
env: 'EXECUTIONS_DATA_SAVE_ON_PROGRESS',
},
@@ -300,7 +300,7 @@ export const schema = {
// in the editor.
saveDataManualExecutions: {
doc: 'Save data of executions when started manually via editor',
format: 'Boolean',
format: Boolean,
default: true,
env: 'EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS',
},
@@ -312,7 +312,7 @@ export const schema = {
// a future version.
pruneData: {
doc: 'Delete data of past executions on a rolling basis',
format: 'Boolean',
format: Boolean,
default: true,
env: 'EXECUTIONS_DATA_PRUNE',
},
@@ -358,7 +358,7 @@ export const schema = {
health: {
active: {
doc: 'If health checks should be enabled',
format: 'Boolean',
format: Boolean,
default: false,
env: 'QUEUE_HEALTH_CHECK_ACTIVE',
},
@@ -420,7 +420,7 @@ export const schema = {
env: 'QUEUE_BULL_REDIS_CLUSTER_NODES',
},
tls: {
format: 'Boolean',
format: Boolean,
default: false,
env: 'QUEUE_BULL_REDIS_TLS',
doc: 'Enable TLS on Redis connections. Default: false',
@@ -558,7 +558,7 @@ export const schema = {
},
metrics: {
enable: {
format: 'Boolean',
format: Boolean,
default: false,
env: 'N8N_METRICS',
doc: 'Enable /metrics endpoint. Default: false',