mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-02 08:58:11 +02:00
Increase retries for google drive connector
This commit is contained in:
parent
e983aaeca7
commit
9cff294a71
@ -62,7 +62,10 @@ class GDriveMimeType(str, Enum):
|
||||
|
||||
GoogleDriveFileType = dict[str, Any]
|
||||
|
||||
add_retries = retry_builder()
|
||||
# Google Drive APIs are quite flakey and may 500 for an
|
||||
# extended period of time. Trying to combat here by adding a very
|
||||
# long retry period (~20 minutes of trying every minute)
|
||||
add_retries = retry_builder(tries=50, max_delay=30)
|
||||
|
||||
|
||||
def _run_drive_file_query(
|
||||
|
Loading…
x
Reference in New Issue
Block a user