mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Add configurable execution history limit (#5505)
* Prune execution data when more than cofnfigured limit * use stricter typings * use `pruneDataMaxCount` --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -325,6 +325,16 @@ export const schema = {
|
||||
default: 3600,
|
||||
env: 'EXECUTIONS_DATA_PRUNE_TIMEOUT',
|
||||
},
|
||||
|
||||
// Additional pruning option to delete executions if total count exceeds the configured max.
|
||||
// Deletes the oldest entries first
|
||||
// Default is 0 = No limit
|
||||
pruneDataMaxCount: {
|
||||
doc: 'Maximum number of executions to keep in DB. Default 0 = no limit',
|
||||
format: Number,
|
||||
default: 0,
|
||||
env: 'EXECUTIONS_DATA_PRUNE_MAX_COUNT',
|
||||
},
|
||||
},
|
||||
|
||||
queue: {
|
||||
|
||||
Reference in New Issue
Block a user