Skip to content

Conversation

@Enimalojd
Copy link
Contributor

@Enimalojd Enimalojd commented Nov 12, 2025

The backoff library is no longer maintained. This commit replaces it with tenacity, which provides equivalent functionality for retry logic.

Changes:

  • Replace backoff dependency with tenacity>=9.1.2 in setup.py
  • Update retry decorators in gql/client.py to use tenacity API
  • Update all documentation examples to use tenacity instead of backoff
  • Update code examples to use tenacity retry decorators

The functionality remains the same:

  • retry_connect: exponential backoff with max 60 seconds (infinite retries)
  • retry_execute: exponential backoff, 5 attempts, excluding TransportQueryError

The backoff library is no longer maintained. This commit replaces it with
tenacity, which provides equivalent functionality for retry logic.

Changes:
- Replace backoff dependency with tenacity>=9.1.2 in setup.py
- Update retry decorators in gql/client.py to use tenacity API
- Update all documentation examples to use tenacity instead of backoff
- Update code examples to use tenacity retry decorators

The functionality remains the same:
- retry_connect: exponential backoff with max 60 seconds (infinite retries)
- retry_execute: exponential backoff, 5 attempts, excluding TransportQueryError
@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7fb869a) to head (effab7a).
⚠️ Report is 42 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##            master      #573    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           38        40     +2     
  Lines         2908      3237   +329     
==========================================
+ Hits          2908      3237   +329     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leszekhanusz
Copy link
Collaborator

Thanks!

@leszekhanusz leszekhanusz merged commit ccf3f2a into graphql-python:master Nov 12, 2025
15 checks passed
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