From f4eeab361a38ae2a7a8f6c9292c1e587be6f7557 Mon Sep 17 00:00:00 2001 From: Gordon Watts Date: Wed, 8 May 2024 10:16:27 -0700 Subject: [PATCH] Add timeout of 10 seconds to transform status update --- servicex/servicex_adapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servicex/servicex_adapter.py b/servicex/servicex_adapter.py index 19d72d80..36ec63d4 100644 --- a/servicex/servicex_adapter.py +++ b/servicex/servicex_adapter.py @@ -120,7 +120,8 @@ async def get_transform_status(self, request_id: str) -> TransformStatus: async with httpx.AsyncClient() as client: headers = await self._get_authorization(client) r = await client.get(url=f"{self.url}/servicex/transformation/{request_id}", - headers=headers) + headers=headers, + timeout=10) if r.status_code == 401: raise AuthorizationError(f"Not authorized to access serviceX at {self.url}") if r.status_code == 404: