Skip to content

Commit fba6042

Browse files
authored
refactor: updating Retry behaviour (#412)
1 parent f92dcdb commit fba6042

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ class Client:
7070
def __init__(self, token: "Token", wikibase: "Wikibase"):
7171
retries = Retry(
7272
total=10,
73-
backoff_factor=1,
73+
backoff_factor=0.5,
74+
backoff_max=30,
7475
status_forcelist=[429],
7576
allowed_methods=["GET", "POST", "PATCH", "DELETE"],
7677
)

0 commit comments

Comments
 (0)