fix(douyu): 修复斗鱼链路 P0/P1 隐患并增强 P2 运维队列可观测性

This commit is contained in:
yml
2026-11-29 14:10:24 +08:00
parent be7146a9ef
commit d12d9e02b3
51 changed files with 2510 additions and 561 deletions
@@ -473,10 +473,13 @@ def stop_scheduler() -> None:
def scheduler_status() -> dict[str, Any]:
with _IN_FLIGHT_LOCK:
in_flight = sorted(_IN_FLIGHT)
return {
"enabled": automation_enabled(),
"running": _thread is not None and _thread.is_alive(),
"tick_seconds": TICK_SECONDS,
"job_interval_seconds": JOB_INTERVAL_SECONDS,
"registered": sorted(_REGISTRY),
"in_flight": in_flight,
}