Skip to content

Commit

Permalink
fix: ECS WaitService finish before task running
Browse files Browse the repository at this point in the history
Signed-off-by: 徳田 真之介 <[email protected]>
  • Loading branch information
徳田 真之介 committed Aug 25, 2023
1 parent 9f75446 commit f650075
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/app/piped/platformprovider/ecs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ func (c *client) WaitServiceStable(ctx context.Context, service types.Service) e
Cluster: service.ClusterArn,
Services: []string{*service.ServiceArn},
}

// TODO: Wait until a new task is started instead of sleeping.
time.Sleep(30 * time.Second)
retry := backoff.NewRetry(retryServiceStable, backoff.NewConstant(retryServiceStableInterval))
_, err := retry.Do(ctx, func() (interface{}, error) {
output, err := c.ecsClient.DescribeServices(ctx, input)
Expand Down

0 comments on commit f650075

Please sign in to comment.