From 6f8e518aa543a4e4703a6a61e78da292e7d76b3c Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Wed, 28 Oct 2026 18:00:28 -0700 Subject: [PATCH] runcexecutor: increase container start timeout to 15 seconds Signed-off-by: Tonis Tiigi --- executor/runcexecutor/executor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/executor/runcexecutor/executor.go b/executor/runcexecutor/executor.go index c7fbf58c3..2542c0196 100644 --- a/executor/runcexecutor/executor.go +++ b/executor/runcexecutor/executor.go @@ -40,6 +40,8 @@ import ( "github.com/pkg/errors" ) +const runcStartTimeout = 15 * time.Second + type Opt struct { // root directory Root string @@ -748,7 +750,7 @@ func (p *procHandle) WaitForReady(ctx context.Context) error { // callback is non-nil it will be called after receiving the pid. func (p *procHandle) WaitForStart(ctx context.Context, startedCh <-chan int, started func()) error { ctx, cancel := context.WithCancelCause(ctx) - ctx, _ = context.WithTimeoutCause(ctx, 10*time.Second, errors.WithStack(context.DeadlineExceeded)) //nolint:govet + ctx, _ = context.WithTimeoutCause(ctx, runcStartTimeout, errors.WithStack(context.DeadlineExceeded)) //nolint:govet defer func() { cancel(errors.WithStack(context.Canceled)) }() select { case <-ctx.Done():