-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builder: add retries to composer API calls
The status calls are sometimes failing on: upstream connect error or disconnect/reset before headers. reset reason: connection termination Since all requests are going through the company proxy, I think that the networking isn't working 100% reliably. This commit adds a retry mechanism provided by the urllib3 library. It will retry on all networking issues and also on some 5xx errors that makes sense to retry (like gateway failures). A test is added that runs the compose waiting code against a mock server that fails every second request. This is imho sufficient to mimick a flaky networking.
- Loading branch information
1 parent
99062e8
commit c242e8b
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters