qiskit-ibm-runtime
qiskit-ibm-runtime copied to clipboard
Warnings and socket errors
Describe the bug When running a long script (hrs) I get fairly regularly this warning
ResourceWarning: Enable tracemalloc to get the object allocation traceback sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.2', 57549), raddr=('104.18.28.94', 443)>
and this error
ERROR:websocket:Connection to remote host was lost. - goodbye
Steps to reproduce
At the beginning of my script I open the service as
from qiskit_ibm_runtime import QiskitRuntimeService service = QiskitRuntimeService()
then open backends from that service
and save the jobs as they run and then wait for the jobs to return.
Expected behavior
Suggested solutions
Additional Information
- qiskit-ibm-runtime version:
- Python version:
- Operating system:
Qiskit 1.0.2 qiskit-ibm-runtime 0.22.0