fix(admin): report heal runtime state (#4786)

This commit is contained in:
Zhengchao An
2026-07-13 11:02:13 +08:00
committed by GitHub
parent 2e85709634
commit 535d672b1f
3 changed files with 78 additions and 11 deletions
+4
View File
@@ -143,6 +143,10 @@ pub fn get_heal_channel_processor() -> Option<&'static Arc<tokio::sync::Mutex<He
GLOBAL_HEAL_CHANNEL_PROCESSOR.get()
}
pub fn heal_runtime_initialized() -> bool {
get_heal_manager().is_some() && get_heal_channel_processor().is_some()
}
pub fn current_heal_active_tasks() -> u64 {
GLOBAL_HEAL_ACTIVE_TASKS.load(Ordering::Relaxed)
}