MCPcopy Create free account
hub / github.com/MetapriseAI/OrgKernel / close_db

Function close_db

src/orgkernel/database.py:99–104  ·  view source on GitHub ↗

Close the global async engine. Call at application shutdown.

()

Source from the content-addressed store, hash-verified

97
98
99async def close_db() -> None:
100 """Close the global async engine. Call at application shutdown."""
101 global async_engine
102 if async_engine is not None:
103 await async_engine.dispose()
104 async_engine = None
105
106
107# ── Type alias for session injection ──────────────────────────────────────────

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected