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

Directly handle usages to be retried in the status consumer

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2024-09-17 - API
    • None
    • None
    • None

      After SWATCH-2290 and SWATCH-2291, we emit a message containing the usage status and error code to the topic "platform.rhsm-subscriptions.billable-usage.status".

      When the status is failed and the error code is subscription not found, we need to also send a message to the topic "platform.rhsm-subscriptions.billable-usage.dlt", so the usage is retried on.

      After suggestion from kflahert@redhat.com, since both consumers are in the same service, we can directly update the billable usage to be retried on, directly in the status consumer without going to the topic "platform.rhsm-subscriptions.billable-usage.dlt" (context: https://github.com/RedHatInsights/rhsm-subscriptions/pull/3596#discussion_r1707540241).

      Acceptance Criteria

      • Update the status consumer to do what the dlt consumer did
      • Remove the usage of the topic "platform.rhsm-subscriptions.billable-usage.dlt" in swatch-producer-azure (configuration and code)
      • Delete the dlt consumer in swatch-billable-usage
      • For QE, it should not be any effects, so only regression testing is needed

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: