MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / api_get_selfcheck_schedule

Function api_get_selfcheck_schedule

src/web/routes/selfcheck.py:373–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371
372@router.get("/schedule")
373def api_get_selfcheck_schedule():
374 settings = get_settings()
375 return {
376 "enabled": bool(getattr(settings, "selfcheck_auto_enabled", False)),
377 "interval_minutes": int(getattr(settings, "selfcheck_interval_minutes", 15) or 15),
378 "mode": _normalize_mode(getattr(settings, "selfcheck_mode", "quick")),
379 "runtime": selfcheck_scheduler.snapshot(),
380 }
381
382
383@router.post("/schedule")

Callers

nothing calls this directly

Calls 3

get_settingsFunction · 0.85
_normalize_modeFunction · 0.70
snapshotMethod · 0.45

Tested by

no test coverage detected