diff --git a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/main.go b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/main.go index fbff5f7f..2cee2fcc 100644 --- a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/main.go +++ b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/main.go @@ -46,6 +46,9 @@ import ( plc "mesh-delivery-assigner/internal/assignment" ) +// composeCallBound is how long the program's calls wait for an answer (main). +const composeCallBound = 3 * time.Minute + func main() { if os.Getenv(process.BrokerFileEnv) == "" { // Started by the tool runner, with no credential of its own: the put's tools (ADR 0546), served through the runtime, @@ -56,6 +59,10 @@ func main() { } return } + // A call waits up to composeCallBound for its answer: compose-candidate composes a whole revision in shadow on each node and + // answered in about 34 s on g14 and shanks (2026-11-16 23:27), past the SDK's 30 s, so every composition step could not run. + // A responder that is absent still answers at once. To be replaced by a bound per verb from the seat's definition. + process.CallTimeout = composeCallBound ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) defer stop() if err := run(ctx, os.Getenv, os.Stderr); err != nil {