kopia lustrzana https://github.com/bellingcat/auto-archiver
follow docs advice on exponential backoff of SheetsAPI
rodzic
4ad71b3589
commit
b2648fa3cd
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue