MCPcopy Create free account
hub / github.com/compozy/agh / settingsRestartTimeout

Function settingsRestartTimeout

internal/cli/update.go:387–396  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

385}
386
387func settingsRestartTimeout(deps commandDeps) time.Duration {
388 timeout := defaultSettingsRestartTimeout
389 if deps.startTimeout > 0 && deps.stopTimeout > 0 {
390 calculated := deps.startTimeout + deps.stopTimeout + (5 * time.Second)
391 if calculated > timeout {
392 timeout = calculated
393 }
394 }
395 return timeout
396}
397
398func rollbackAppliedUpdate(
399 ctx context.Context,

Callers 2

waitForSettingsRestartFunction · 0.85

Calls

no outgoing calls

Tested by 1