follow docs advice on exponential backoff of SheetsAPI

pull/331/head
msramalho 2025-06-30 01:47:12 +01:00
rodzic 4ad71b3589
commit b2648fa3cd
Nie znaleziono w bazie danych klucza dla tego podpisu
2 zmienionych plików z 3 dodań i 7 usunięć

Wyświetl plik

@ -178,9 +178,7 @@ class GsheetsFeederDB(Feeder, Database):
)
@retry(
wait_incrementing_start=1000,
wait_incrementing_increment=3000,
wait_incrementing_max=20_000,
wait_exponential_multiplier=1,
stop_max_attempt_number=5,
)
def batch_set_cell_with_retry(gw, cell_updates: list):

Wyświetl plik

@ -28,10 +28,8 @@ class GWorksheet:
}
@retry(
wait_incrementing_start=1000,
wait_incrementing_increment=3000,
wait_incrementing_max=20_000,
stop_max_attempt_number=5,
wait_exponential_multiplier=1,
stop_max_attempt_number=6,
)
def __init__(self, worksheet, columns=COLUMN_NAMES, header_row=1):
self.wks = worksheet