Read drain-bound through the one settings reader, a duration text, 30 s by default

The runner reads its setting drain-bound as the node-engine composes it (MESH_CONFIG_DRAIN_BOUND)
with the SDK's duration reader, and stops before it serves on a value that is no duration.

Builds: design 47 H2 §813 (12), §781, H-A-369, H-A-370, H-A-377
This commit is contained in:
2026-11-21 23:58:54 +01:00
parent 858beb2b63
commit 5cca1fceba
4 changed files with 52 additions and 9 deletions
+6 -3
View File
@@ -7,9 +7,12 @@ import (
"time"
)
// DefaultDrainBound is how long the tool runner, once told to stop, waits for the calls in flight in its bundles to finish:
// the setting drain-bound's default (design 47 H2 §813 (12), H-A-342 (2)).
const DefaultDrainBound = 30 * time.Second
// DrainBoundSetting is the tool runner module's setting of how long, once told to stop, it waits for the calls in flight in its
// bundles to finish, a duration text; DefaultDrainBound is its default (design 47 H2 §813 (12), H-A-342 (2), H-A-377).
const (
DrainBoundSetting = "drain-bound"
DefaultDrainBound = 30 * time.Second
)
// inFlight is one ask the runner made of a bundle and is still waiting on: the bundle, the verb (a tool's name, else the
// method), when it was asked, and closed when the drain cuts it.