Skip to content

Commit

Permalink
Increase interval between requests when token is required
Browse files Browse the repository at this point in the history
https://pulp.plan.io/issues/7929
closes #7929

(cherry picked from commit 38fbe6c)
  • Loading branch information
fao89 committed Dec 4, 2020
1 parent 1b853e1 commit dbdd8f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/7929.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Increase interval between requests when token is required
2 changes: 1 addition & 1 deletion pulp_ansible/app/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbdd8f9

Please sign in to comment.