1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-31 03:09:44 +02:00

fix(libstack): add a different timeout for WaitForStatus BE-11376 (#119)

This commit is contained in:
andres-portainer 2024-11-12 19:30:42 -03:00 committed by GitHub
parent 5a451b2035
commit b2eb4388fd
2 changed files with 11 additions and 1 deletions

View file

@ -130,7 +130,11 @@ func (c *ComposeDeployer) WaitForStatus(ctx context.Context, name string, status
if err := withComposeService(ctx, nil, libstack.Options{ProjectName: name}, func(composeService api.Service, project *types.Project) error {
var err error
containerSummaries, err = composeService.Ps(ctx, name, api.PsOptions{All: true})
psCtx, cancelFunc := context.WithTimeout(context.Background(), time.Minute)
defer cancelFunc()
containerSummaries, err = composeService.Ps(psCtx, name, api.PsOptions{All: true})
return err
}); err != nil {