Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor for robustness #441

Merged
merged 23 commits into from
Dec 22, 2020
Merged

Conversation

randomir
Copy link
Member

@randomir randomir commented Nov 9, 2020

Closes #414.
Closes #229.
Partially addresses #412.
Partially addresses #439.
Partially addresses #357.
Helps with #228.

@randomir randomir force-pushed the refactor-for-robustness branch 2 times, most recently from 8823604 to ee0f089 Compare November 9, 2020 13:59
@randomir randomir marked this pull request as ready for review November 10, 2020 19:42
@randomir
Copy link
Member Author

Far from what I plan to do under this banner, but I'll break it up in a few PRs.

dwave/cloud/client.py Show resolved Hide resolved
dwave/cloud/client.py Show resolved Hide resolved
dwave/cloud/client.py Outdated Show resolved Hide resolved
dwave/cloud/client.py Outdated Show resolved Hide resolved
dwave/cloud/exceptions.py Outdated Show resolved Hide resolved
dwave/cloud/utils.py Outdated Show resolved Hide resolved
dwave/cloud/utils.py Outdated Show resolved Hide resolved
Use urllib3's retry defaults (10 retries total, across all error
conditions).

This implements all "easy cases" described in dwavesystems#414.
This is needed because we currently handle both:
- parsed values (str/int/float/bool/...)
- unparsed string values
in the constructor. Ideally, we would move parsing downstream to config
submodule.
Due to nonatomicity of solver selection on specialized and base client,
the order might differ, so we should consider all solvers, not just the
first one.
Try to work around some warts, hopefully can be simplified with SAPI
changes.
@randomir randomir merged commit febc4fe into dwavesystems:master Dec 22, 2020
@randomir randomir deleted the refactor-for-robustness branch December 22, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry SAPI requests whenever possible Handle random remote disconnects?
3 participants