add node heartbeat ttl offline reaper and enforce capability checks

This commit is contained in:
DBT
2026-02-24 16:20:43 +00:00
parent 07cf54538e
commit 04cbb22c57
5 changed files with 90 additions and 11 deletions

View File

@@ -66,6 +66,9 @@ func (t *NodesTool) Execute(ctx context.Context, args map[string]interface{}) (s
if nodeID == "" {
return "", fmt.Errorf("no eligible node found for action=%s", action)
}
if !t.manager.SupportsAction(nodeID, action) {
return "", fmt.Errorf("node %s does not support action=%s", nodeID, action)
}
if t.router == nil {
return "", fmt.Errorf("nodes transport router not configured")
}