Skip to content

Back-off mechanism for usage sharing #82

@shaitanaleksander

Description

@shaitanaleksander

Description
Introduce a back-off mechanism for pausing usage sharing, take as an example from pipeline-dotnet where it is already implemented for CloudRequestEngine initial requests. This ensures consistent handling of retries and avoids excessive logging.

Acceptance Criteria

  • Implement a back-off mechanism to pause usage sharing.
  • Update the log message to state:
  • Usage sharing was paused for X seconds

Add tests to validate both the back-off behavior and the log output.
Environment

  • Version: Target 4.5

  • Affects: usage sharing logic

  • Steps to Reproduce (Current Behavior)

    Usage sharing currently retries without back-off.
    Log messages do not indicate pause duration.
    Expected Behavior
    

Usage sharing applies a pause based on the back-off mechanism.
Log clearly states that usage sharing was paused for X seconds.
Additional Notes

Tests must include verification of pause logic and logging.
Branch should be created as feature/usage-sharing-backoff from 4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions