fix(douyu): 修复斗鱼链路 P0/P1 隐患并增强 P2 运维队列可观测性
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user