From 69da23fb941121fd4b8cc0403ab4492c602208d0 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sun, 14 Aug 2022 22:31:33 +0300 Subject: [PATCH] Update download timeout --- src/app/services/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/downloader.py b/src/app/services/downloader.py index 8bbab4e..d76e9df 100644 --- a/src/app/services/downloader.py +++ b/src/app/services/downloader.py @@ -10,7 +10,7 @@ async def download( ) -> Optional[tuple[httpx.Response, httpx.AsyncClient, str]]: headers = {"Authorization": env_config.DOWNLOADER_API_KEY} - client = httpx.AsyncClient(timeout=300) + client = httpx.AsyncClient(timeout=600) request = client.build_request( "GET", f"{env_config.DOWNLOADER_URL}/download/{source_id}/{remote_id}/{file_type}",