Increase cloud backup download timeout (#134961)

Increese download timeout
This commit is contained in:
Joakim Sørensen 2025-01-07 13:18:02 +01:00 committed by GitHub
parent 4019045e7b
commit 5d2a8e8208
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,11 @@ class CloudBackupAgent(BackupAgent):
raise BackupAgentError("Failed to get download details") from err
try:
resp = await self._cloud.websession.get(details["url"])
resp = await self._cloud.websession.get(
details["url"],
timeout=ClientTimeout(connect=10.0, total=43200.0), # 43200s == 12h
)
resp.raise_for_status()
except ClientError as err:
raise BackupAgentError("Failed to download backup") from err