mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-07 19:08:30 +03:00
follow docs advice on exponential backoff of SheetsAPI
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user