Skip to content

Commit

Permalink
Add timeout of 10 seconds to transform status update
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwatts authored and BenGalewsky committed May 8, 2024
1 parent 6bcc1a3 commit f4eeab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servicex/servicex_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f4eeab3

Please sign in to comment.