Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Aug 8, 2025

Fixed an issue where the retry_backoff_max parameter in RetryPolicy and AsyncRetryPolicy constructors was being ignored, causing retry operations to use default maximum backoff values instead of the user-specified limits.

@pvaneck pvaneck force-pushed the core-retry-backoff branch from 8cdff58 to 5cdcd12 Compare August 8, 2025 23:57
@pvaneck pvaneck marked this pull request as ready for review August 9, 2025 00:28
@Copilot Copilot AI review requested due to automatic review settings August 9, 2025 00:28
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the retry_backoff_max parameter in RetryPolicy and AsyncRetryPolicy constructors was being ignored. The fix ensures that user-specified maximum backoff values are properly respected instead of always using the default class constant.

  • Changed the configure_retries method to use the instance's backoff_max property instead of the class constant BACKOFF_MAX
  • Updated the changelog to document this bug fix

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
sdk/core/azure-core/azure/core/pipeline/policies/_retry.py Fixed the configure_retries method to use instance backoff_max instead of class constant
sdk/core/azure-core/CHANGELOG.md Added changelog entry documenting the bug fix

Signed-off-by: Paul Van Eck <[email protected]>
@pvaneck pvaneck merged commit 6af5eaf into Azure:main Aug 11, 2025
53 checks passed
@pvaneck pvaneck deleted the core-retry-backoff branch August 11, 2025 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants