-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfesthacktoberfest2025
Description
Description
Add a lifecycle/retention strategy for old triggers in the DatabaseTriggers collection to prevent unbounded growth.
Proposed Solution
Implement one of the following cleanup strategies:
- Add a TTL (Time To Live) field like
expires_atto automatically remove old documents - Implement periodic purge of CANCELLED/TRIGGERED triggers older than N days
- Add background job to clean up old trigger records
Context
This enhancement was identified during code review of PR #428 which introduces the trigger system. Without proper cleanup, the DatabaseTriggers collection could grow indefinitely as triggers are executed and completed.
Related Issues
Backlinks
Requested by: @NiveditJain
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfesthacktoberfest2025