mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 06:05:26 +01:00
Double max retries in Google Drive (#153717)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user