Update download timeout

This commit is contained in:
2022-08-14 22:31:33 +03:00
parent 69598b2264
commit 69da23fb94

View File

@@ -10,7 +10,7 @@ async def download(
) -> Optional[tuple[httpx.Response, httpx.AsyncClient, str]]: ) -> Optional[tuple[httpx.Response, httpx.AsyncClient, str]]:
headers = {"Authorization": env_config.DOWNLOADER_API_KEY} headers = {"Authorization": env_config.DOWNLOADER_API_KEY}
client = httpx.AsyncClient(timeout=300) client = httpx.AsyncClient(timeout=600)
request = client.build_request( request = client.build_request(
"GET", "GET",
f"{env_config.DOWNLOADER_URL}/download/{source_id}/{remote_id}/{file_type}", f"{env_config.DOWNLOADER_URL}/download/{source_id}/{remote_id}/{file_type}",