Skip to content

Commit 25948fa

Browse files
committed
fix: context timeout for satellite containers
1 parent b6a0c7a commit 25948fa

File tree

1 file changed

+2
-1
lines changed
  • engine/internal/retrieval/engine/postgres/tools/cont

1 file changed

+2
-1
lines changed

Diff for: engine/internal/retrieval/engine/postgres/tools/cont/container.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package cont
88
import (
99
"context"
1010
"strings"
11+
"time"
1112

1213
"github.com/docker/docker/api/types"
1314
"github.com/docker/docker/api/types/container"
@@ -124,7 +125,7 @@ func CleanUpControlContainers(ctx context.Context, dockerClient *client.Client,
124125
func CleanUpSatelliteContainers(ctx context.Context, dockerClient *client.Client, instanceID string) error {
125126
log.Msg("Clean up satellite containers")
126127

127-
shutdownCtx, shutdownCancel := context.WithTimeout(ctx, StopTimeout)
128+
shutdownCtx, shutdownCancel := context.WithTimeout(ctx, StopTimeout*time.Second)
128129
defer shutdownCancel()
129130

130131
return cleanUpContainers(shutdownCtx, dockerClient, instanceID, getSatelliteContainerFilters())

0 commit comments

Comments
 (0)