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

Robust client close #680

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

randomir
Copy link
Member

Close #217.

Otherwise the queue could be joined before all polls are done, and
client.close() would fail to terminate worker threads.
After client is closed, and its threadpools shutdown, we now reject
requests to submit a problem, poll for status, cancel or download
answer. We fail with a new exception, `UseAfterCloseError`.
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 94.44444% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.10%. Comparing base (90de738) to head (60ef91f).

Files with missing lines Patch % Lines
dwave/cloud/client/base.py 91.30% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #680      +/-   ##
==========================================
+ Coverage   89.01%   89.10%   +0.08%     
==========================================
  Files          44       44              
  Lines        4817     4846      +29     
==========================================
+ Hits         4288     4318      +30     
+ Misses        529      528       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Robust Client.close(), no client/solver/future reuse after close
1 participant