Solved. It end up that the atexit and “finally” are triggered properly when DELETE session is sent.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| JupyterLab Extension: TerminalSession wait for command to complete then shutdown | 2 | 856 | June 14, 2023 | |
| How do I terminate "phantom sessions"? | 1 | 517 | December 16, 2023 | |
| I want to delete kernel session on restart function but fail to complete it | 3 | 623 | May 9, 2023 | |
| Programmatically Logging out an authenticated user or Culling an instance | 0 | 469 | September 23, 2020 | |
| Shutting down a JupyterLab Server with a single KeyboardInterrupt | 0 | 1075 | February 16, 2022 |