MCPcopy Create free account
hub / github.com/docker/docker-agent / logRetryBackoff

Function logRetryBackoff

pkg/runtime/fallback.go:110–116  ·  view source on GitHub ↗

logRetryBackoff logs when we're backing off before a retry

(agentName string, modelID modelsdev.ID, attempt int, backoffDelay time.Duration)

Source from the content-addressed store, hash-verified

108
109// logRetryBackoff logs when we're backing off before a retry
110func logRetryBackoff(agentName string, modelID modelsdev.ID, attempt int, backoffDelay time.Duration) {
111 slog.Debug("Backing off before retry",
112 "agent", agentName,
113 "model", modelID.String(),
114 "attempt", attempt+1,
115 "backoff", backoffDelay)
116}
117
118// getEffectiveCooldown returns the cooldown duration to use for an agent.
119// Uses the agent's configured cooldown, or the default if not set.

Callers 1

executeMethod · 0.85

Calls 2

DebugMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected