Qiskit / qiskit-ibm-runtime

IBM Client for Qiskit Runtime
https://docs.quantum.ibm.com/api/qiskit-ibm-runtime
Apache License 2.0
149 stars 154 forks source link

Warnings and socket errors #1644

Open dcmckayibm opened 5 months ago

dcmckayibm commented 5 months ago

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

dcmckayibm commented 5 months ago

Qiskit 1.0.2 qiskit-ibm-runtime 0.22.0