mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
follow docs advice on exponential backoff of SheetsAPI
This commit is contained in:
@@ -178,9 +178,7 @@ class GsheetsFeederDB(Feeder, Database):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@retry(
|
@retry(
|
||||||
wait_incrementing_start=1000,
|
wait_exponential_multiplier=1,
|
||||||
wait_incrementing_increment=3000,
|
|
||||||
wait_incrementing_max=20_000,
|
|
||||||
stop_max_attempt_number=5,
|
stop_max_attempt_number=5,
|
||||||
)
|
)
|
||||||
def batch_set_cell_with_retry(gw, cell_updates: list):
|
def batch_set_cell_with_retry(gw, cell_updates: list):
|
||||||
|
|||||||
@@ -28,10 +28,8 @@ class GWorksheet:
|
|||||||
}
|
}
|
||||||
|
|
||||||
@retry(
|
@retry(
|
||||||
wait_incrementing_start=1000,
|
wait_exponential_multiplier=1,
|
||||||
wait_incrementing_increment=3000,
|
stop_max_attempt_number=6,
|
||||||
wait_incrementing_max=20_000,
|
|
||||||
stop_max_attempt_number=5,
|
|
||||||
)
|
)
|
||||||
def __init__(self, worksheet, columns=COLUMN_NAMES, header_row=1):
|
def __init__(self, worksheet, columns=COLUMN_NAMES, header_row=1):
|
||||||
self.wks = worksheet
|
self.wks = worksheet
|
||||||
|
|||||||
Reference in New Issue
Block a user