mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Make executions pruning settings configurable (#7468)
This commit is contained in:
@@ -316,16 +316,30 @@ export const schema = {
|
||||
env: 'EXECUTIONS_DATA_PRUNE',
|
||||
},
|
||||
pruneDataMaxAge: {
|
||||
doc: 'How old (hours) the finished execution data has to be to get deleted',
|
||||
doc: 'How old (hours) the finished execution data has to be to get soft-deleted',
|
||||
format: Number,
|
||||
default: 336,
|
||||
env: 'EXECUTIONS_DATA_MAX_AGE',
|
||||
},
|
||||
pruneDataInterval: {
|
||||
doc: 'How often (minutes) execution data should be hard-deleted',
|
||||
pruneDataHardDeleteBuffer: {
|
||||
doc: 'How old (hours) the finished execution data has to be to get hard-deleted. By default, this buffer excludes recent executions as the user may need them while building a workflow.',
|
||||
format: Number,
|
||||
default: 15,
|
||||
env: 'EXECUTIONS_DATA_PRUNE_INTERVAL',
|
||||
default: 1,
|
||||
env: 'EXECUTIONS_DATA_HARD_DELETE_BUFFER',
|
||||
},
|
||||
pruneDataIntervals: {
|
||||
hardDelete: {
|
||||
doc: 'How often (minutes) execution data should be hard-deleted',
|
||||
format: Number,
|
||||
default: 15,
|
||||
env: 'EXECUTIONS_DATA_PRUNE_HARD_DELETE_INTERVAL',
|
||||
},
|
||||
softDelete: {
|
||||
doc: 'How often (minutes) execution data should be soft-deleted',
|
||||
format: Number,
|
||||
default: 60,
|
||||
env: 'EXECUTIONS_DATA_PRUNE_SOFT_DELETE_INTERVAL',
|
||||
},
|
||||
},
|
||||
|
||||
// Additional pruning option to delete executions if total count exceeds the configured max.
|
||||
|
||||
Reference in New Issue
Block a user