From ffb4e470b56222ae11891d478e96ea9c31675afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 4 Jul 2023 10:49:04 +0200 Subject: [PATCH] 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 --- packages/cli/src/config/schema.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/config/schema.ts b/packages/cli/src/config/schema.ts index ae36bc5d25..e6aedf8369 100644 --- a/packages/cli/src/config/schema.ts +++ b/packages/cli/src/config/schema.ts @@ -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', }, },