fix(core): Update pruning related config defaults for v1 (#6577)

* Save manual executions by default
* Enable executions data pruning by default
* Keep a maximum of 10000 executions by default

Co-authored-by: Cornelius Suermann <cornelius@n8n.io>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-07-04 10:49:04 +02:00 committed by GitHub
parent d0eb5d4e1b
commit ffb4e470b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,7 +297,7 @@ export const schema = {
saveDataManualExecutions: {
doc: 'Save data of executions when started manually via editor',
format: 'Boolean',
default: false,
default: true,
env: 'EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS',
},
@ -309,7 +309,7 @@ export const schema = {
pruneData: {
doc: 'Delete data of past executions on a rolling basis',
format: 'Boolean',
default: false,
default: true,
env: 'EXECUTIONS_DATA_PRUNE',
},
pruneDataMaxAge: {
@ -327,11 +327,11 @@ export const schema = {
// Additional pruning option to delete executions if total count exceeds the configured max.
// Deletes the oldest entries first
// Default is 0 = No limit
// Set to 0 for No limit
pruneDataMaxCount: {
doc: 'Maximum number of executions to keep in DB. Default 0 = no limit',
doc: 'Maximum number of executions to keep in DB. 0 = no limit',
format: Number,
default: 0,
default: 10000,
env: 'EXECUTIONS_DATA_PRUNE_MAX_COUNT',
},
},