Skip to content

Commit

Permalink
workaround: retry manifest upload on quay
Browse files Browse the repository at this point in the history
Signed-off-by: Isabella do Amaral <[email protected]>
  • Loading branch information
isinyaaa committed Nov 13, 2024
1 parent ff9c2e2 commit 96ebf63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oras/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,9 @@ def push(
response = self.upload_manifest(
manifest, container
) # make the returned response from this method, the one pertaining to the uploaded Manifest
if response.status_code == 500:
# retry once
response = self.upload_manifest(manifest, container)
self._check_200_response(response)
print(f"Successfully pushed {container}")
return response
Expand Down

0 comments on commit 96ebf63

Please sign in to comment.