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

Send billable-usages to dlq(dead-letter-queue) when no subscription is found for azure

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2024-06-12 - API
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      After removing azure_tenant_id from billing_account_id in https://issues.redhat.com/browse/SWATCH-2492 we removed the error that we use to determine a retry is required when a subscription is missing azure_subscription_id. Instead we should now retry if no subscription is found at all, up to the azure window of 72hrs (expanded to 96 hours for safety net)

      Done:
      If billable-usage is received for a contract that does not yet have a billing_account_id and it is within 96 hours of the usages snapshot_date, the remittance record should be updated with the retry_after field populated. 

      If it is after the 96 hour usage window then an error should be logged.

              kflahert@redhat.com Kevin Flaherty
              kflahert@redhat.com Kevin Flaherty
              Diego de Oliveira Maranhao Diego de Oliveira Maranhao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: