You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have oSparc open in two browser tab and close one, also the services corresponding to the project opened in the second tab will be closed. This results in the "Server Connection Error" in JupyterNotebooks
Please not that @GitHK and me investigated the garbage-colelctor logs, and the gargabe collector is not involved or responsible for this bug. @GitHK recons that likely a on_user_logout socket.io event is involved.
Expected behaviour
Closing a tab does not affect a second study open in a second tab
Actual behaviour
Closing a second tab affects unrelated studies of a user --> Dynamic Services (Jupyters) are (gracefully) shut down
Steps to reproduce
Open two projects in two browser tabs (no need to duplicate tab)
Add a jupyter to each of them, open it
Close one tab (forcefully) by pressing the "X" button in the browser
Wait for the redis TTL timeout
See that in the second (still open) tab, the jupyter will display "Server connection error", because it was shut down
mrnicegyu11
changed the title
Dynamic Services close when second tab is closed
Dynamic Services are shut down in an open study when second tab with a second study is closed
Apr 21, 2022
how can a service be removed without the garbage collector being involved? on_user_logout does not trigger any direct project close mechanism but just removes the key from the redis DB, so that the GC can clean up the projects. And pressing X does not trigger user logout.
Just tested this on master, as instructed by the use case. Everything works as expected. I will close the issue.
If still present, please reopen it and update the case with your findings @mrnicegyu11@odeimaiz
Long story short
When you have oSparc open in two browser tab and close one, also the services corresponding to the project opened in the second tab will be closed. This results in the "Server Connection Error" in JupyterNotebooks
Please not that @GitHK and me investigated the garbage-colelctor logs, and the gargabe collector is not involved or responsible for this bug. @GitHK recons that likely a
on_user_logout
socket.io event is involved.Expected behaviour
Closing a tab does not affect a second study open in a second tab
Actual behaviour
Closing a second tab affects unrelated studies of a user --> Dynamic Services (Jupyters) are (gracefully) shut down
Steps to reproduce
Your environment
reported by @Konohana0608
The text was updated successfully, but these errors were encountered: