INNER CODE UNIT · Python
_run
YichengYang-Ethan/oracle3 · oracle3/dashboard/server.py:413
def _run():
asyncio.run(self._uvicorn_server.serve())
self._server_thread = threading.Thread(target=_run, daemon=True, name='dashboard')
self._server_thread.start()
logger.info('Dashboard server started on http://%s:%d', self.host, self.port)
def stop(self) -> None:
"""Signal the uvicorn server to shut down."""
if self._uvicorn_server is not None:
self._uvicorn_server.should_exit = True