MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / _bootstrap_proxy_pool

Function _bootstrap_proxy_pool

app/main.py:50–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 except Exception as exc: # pragma: no cover - startup best effort
49 logger.warning("OCR warmup failed: %s", exc)
50 runtime_logs.log_system_event(
51 stage="ocr_warmup",
52 status="failed",
53 message=f"OCR 预热失败:{exc}",
54 details={"error": exc.__class__.__name__},
55 level=logging.WARNING,
56 )
57 get_scheduler_service().start()
58 runtime_logs.log_system_event(
59 stage="startup",
60 status="success",
61 message="服务启动完成",
62 )
63
64 @app.on_event("shutdown")
65 def stop_scheduler() -> None:
66 get_scheduler_service().stop()
67 get_ocr_service().shutdown()
68 get_runtime_log_service().log_system_event(
69 stage="shutdown",
70 status="success",

Callers

nothing calls this directly

Calls 4

log_system_eventMethod · 0.80
startMethod · 0.45
status_payloadMethod · 0.45

Tested by

no test coverage detected