Double max retries in Google Drive (#153717)

This commit is contained in:
tronikos
2025-10-05 00:35:50 -07:00
committed by GitHub
parent 1629dad1a8
commit e8e0eabb99
2 changed files with 4 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ from homeassistant.exceptions import (
from homeassistant.helpers import config_entry_oauth2_flow
_UPLOAD_AND_DOWNLOAD_TIMEOUT = 12 * 3600
_UPLOAD_MAX_RETRIES = 20
_LOGGER = logging.getLogger(__name__)
@@ -150,6 +151,7 @@ class DriveClient:
backup_metadata,
open_stream,
backup.size,
max_retries=_UPLOAD_MAX_RETRIES,
timeout=ClientTimeout(total=_UPLOAD_AND_DOWNLOAD_TIMEOUT),
)
_LOGGER.debug(

View File

@@ -154,6 +154,7 @@
987,
),
dict({
'max_retries': 20,
'timeout': dict({
'ceil_threshold': 5,
'connect': None,
@@ -226,6 +227,7 @@
987,
),
dict({
'max_retries': 20,
'timeout': dict({
'ceil_threshold': 5,
'connect': None,