Skip to content

Commit

Permalink
Update pkg/app/piped/platformprovider/ecs/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Khanh Tran <[email protected]>
  • Loading branch information
tokku5552 and khanhtc1202 authored Aug 25, 2023
1 parent f650075 commit 8898cf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/app/piped/platformprovider/ecs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ func (c *client) WaitServiceStable(ctx context.Context, service types.Service) e
Cluster: service.ClusterArn,
Services: []string{*service.ServiceArn},
}
// Wait before first checking the service state due to the logic checking service
// stable currently is based on `pendingCount`, which could always be `0` when
// the service deployment has started running.
// TODO: Wait until a new task is started instead of sleeping.
time.Sleep(30 * time.Second)
retry := backoff.NewRetry(retryServiceStable, backoff.NewConstant(retryServiceStableInterval))
Expand Down

0 comments on commit 8898cf7

Please sign in to comment.