fix(health-monitor): recompute hourly budget post-drain, abort full check on stop, skip stale-run drain

This commit is contained in:
Jason Wu 2026-03-21 10:02:33 +08:00
parent 269578dfaf
commit 8a9a9cbbe5

View File

@ -247,7 +247,7 @@ export function startChannelHealthMonitor(deps: ChannelHealthMonitorDeps): Chann
);
// If the monitor was stopped during the drain window, abort the restart.
if (stopped) {
break;
return;
}
// Re-evaluate channel health after drain: the channel may have recovered
// or reconnected while we were waiting. Only proceed if still unhealthy.