Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-1114

Create a curl style job to purge remittance history based on a configurable retention policy

    XMLWordPrintable

Details

    Description

      We are currently not pruning remittance records and they will continue to grow over time. Once we start storing historical remittance, the number of records will increase at a faster pace. We should create a job that will purge remittance records when they reach a configurable age.

      To accomplish this:

      • Implement a method on BillableUsageRemittanceRepository that will delete remittance records based on a max age duration
      • Add an internal RPC API endpoint to the internal-tally-api-spec.yaml and implement it so that it starts an asynchronous process to purge remittance.
        • HOURLY remittance should be purged based on a max daily retention policy (aligned with hourly tally retention policy)
        • DAILY remittance should be purged based on a max hourly retention policy (aligned with daily tally retention policy)
      • Configure a curl based scheduled job that makes a request to the new API to start the purge process.

       

      Attachments

        Issue Links

          Activity

            People

              kflahert@redhat.com Kevin Flaherty
              mstead@redhat.com Michael Stead
              Aurobinda Nayak Aurobinda Nayak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: