Skip to content

Commit

Permalink
longer backoffs
Browse files Browse the repository at this point in the history
  • Loading branch information
MattWellie committed Apr 23, 2024
1 parent 8ee989f commit 1296dd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metamist/graphql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ def validate(doc: DocumentNode, client=None, use_local_schema=False):

# use older style typing to broaden supported Python versions
@backoff.on_exception(
backoff.expo,
backoff.fibo,
exception=(HTTPError, JSONDecodeError, TransportServerError),
max_time=10,
max_time=55,
max_value=55
)
def query(
_query: str | DocumentNode,
Expand Down

0 comments on commit 1296dd0

Please sign in to comment.