Context / Goal
For each reconciliation run, it will generate many reconciliation run records inside the database. Specifically, the reconciliation_record table will have as many rows as there are migration keys in the dataset.
With each new reconciliation run, the older runs' results also becomes less meaningful and are less likely to be accessed by user.
For regularly scheduled runs, this would accumulate a large amount of data laying around in the database which can incur significant fees overtime.
Expected Outcome
- Provide a configuration to the @scheduled reconciliation task to allow users to deletes runs older than X regardless of dataset
Out of Scope
Additional context / implementation notes