follow docs advice on exponential backoff of SheetsAPI

This commit is contained in:
msramalho
2025-06-30 01:47:12 +01:00
parent 4ad71b3589
commit b2648fa3cd
2 changed files with 3 additions and 7 deletions

View File

@@ -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):

View File

@@ -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