From dbdd8f9997ee3b514f84e667d0681325e2ceaa83 Mon Sep 17 00:00:00 2001 From: Fabricio Aguiar Date: Fri, 4 Dec 2020 18:02:14 -0300 Subject: [PATCH] Increase interval between requests when token is required https://pulp.plan.io/issues/7929 closes #7929 (cherry picked from commit 38fbe6ca23fab2d4d461239a1b33cdc6f7c5e0a1) --- CHANGES/7929.bugfix | 1 + pulp_ansible/app/downloaders.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/7929.bugfix diff --git a/CHANGES/7929.bugfix b/CHANGES/7929.bugfix new file mode 100644 index 000000000..ac8020098 --- /dev/null +++ b/CHANGES/7929.bugfix @@ -0,0 +1 @@ +Increase interval between requests when token is required diff --git a/pulp_ansible/app/downloaders.py b/pulp_ansible/app/downloaders.py index b5d7b5c9f..ef2cab10a 100644 --- a/pulp_ansible/app/downloaders.py +++ b/pulp_ansible/app/downloaders.py @@ -128,7 +128,7 @@ async def _run_with_additional_headers(self, headers): DownloadResult: Contains information about the result. See the DownloadResult docs for more information. """ - await asyncio.sleep(0.2) + await asyncio.sleep(0.75) async with self.session.get(self.url, headers=headers, proxy=self.proxy) as response: self.raise_for_status(response) to_return = await self._handle_response(response)