☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

del app when session destroyed

Community Support
chupach1
chupach1

Couldn’t find a standardized appropriate way in doc:

using bokeh serve, when session is destroyed (“on_session_destroyed” in server_lifecycle.py is called),

what is the correct pattern to destroy the app instantiated in main.py, so to free resources (memory, sql connections, etc.)

Any suggestions ? that would be really great !

⌁   Link to post

End of archived discussion · Replies are disabled