-
Notifications
You must be signed in to change notification settings - Fork 17
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
[BUG] - Session disconnect is not working properly #44
Comments
2023.06.21 19:38:13.327 laboneq.controller.controller INFO VERSION: laboneq 2.4.0 |
Hi @YuanG13 , |
It turns out that it needs around 2s sleep time between disconnect and connect. I would suggest disconnect release the thread after it fully disconnect. But cannot confirm whether the wait time depends on scale of the device setup or not. |
Hi @YuanG13 , |
the second session is actually with different device setup on the same devices. |
So the device setup assigned to the second session has different connections / logical signals / qubits for each device? |
I think the physical connections would be identical, but could contain only part of the rack or have different logicals channels for devices. In our case, we were changing logical signals for some of the qubits. In our backend, we try to reuse the session as much as possible until it needs a different DeviceSetup, and we do session_old.disconnect and session_new.connect |
Further issue:
|
Hello @YuanG13, as discussed, this issue is resolve and we close the ticket. |
Describe the bug
A clear and concise description of what the bug is.
if you create a session, and do
you will get an error
LabOneQControllerException: Exception ZIAPIServerException with status code: 32789 - Device is already connected to a different server. Extended information: Device 'DEV8755' is already in use with status: In use by xxx.xxx.xx.xxx. when calling method connectDevice with ('dev8755', '1gbe') and {}
I think the session does not disconnect properly after release laboneq 2.4. The name of the function disconnect should mean the devices are completely disable the connection.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Code & Screenshots
If possible, add example code or serialized LabOne Q data objects, like the Experiment and DeviceSetup, that allow us to reproduce the behavior.
If applicable, add screenshots to help explain your problem.
Versions used:
Context
The text was updated successfully, but these errors were encountered: