Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions servicex/servicex_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,12 @@ async def get_transformation_results(
if later_than:
params["later_than"] = later_than.isoformat()

async with AsyncClient() as session:
retry_options = Retry(total=3, backoff_factor=10)
async with AsyncClient(
transport=RetryTransport(retry=retry_options), timeout=_timeout
) as session:
r = await session.get(headers=headers, url=url, params=params)
if r.status_code == 403:
if r.status_code in [401, 403]:
raise AuthorizationError(
f"Not authorized to access serviceX at {self.url}"
)
Expand Down
Loading