At the time of committing, token exchange requests to CERN SSO can have a response time of many seconds (> 10). This commit schedules them in one go for asynchronous execution via asyncio.gather, instead of doing them in sequence.
Note that the maximum number of requests done via self.fetch that are in flight in a given moment is still limited by Tornado's AsyncHTTPClient's max_clients setting.
At the time of committing, token exchange requests to CERN SSO can have a response time of many seconds (> 10). This commit schedules them in one go for asynchronous execution via
asyncio.gather
, instead of doing them in sequence.Note that the maximum number of requests done via
self.fetch
that are in flight in a given moment is still limited by Tornado'sAsyncHTTPClient
'smax_clients
setting.