Skip to content

Commit

Permalink
Increase retries for google drive connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Nov 30, 2023
1 parent e983aae commit 9cff294
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/danswer/connectors/google_drive/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

1 comment on commit 9cff294

@vercel
Copy link

@vercel vercel bot commented on 9cff294 Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.