Skip to content

Commit

Permalink
fix: simplify waiter conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwwright committed Dec 21, 2023
1 parent e3eb945 commit f6f9fce
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/aws-cdk/lib/api/hotswap/ecs-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,6 @@ export async function isHotswappableEcsServiceChange(
state: 'failure',
},

// wait for all services to report COMPLETED status for the PRIMARY deployment
{
matcher: 'path',
argument: "length(services[].deployments[? status == 'PRIMARY' && rolloutState != 'COMPLETED'][]) == `0`",
expected: true,
state: 'success',
},

// failure if any services report a deployment with status FAILED
{
matcher: 'path',
Expand All @@ -160,7 +152,6 @@ export async function isHotswappableEcsServiceChange(
state: 'failure',
},

// backup for non-rolling update services that do not provide rolloutState
// wait for all services to report only a single deployment
{
matcher: 'path',
Expand Down

0 comments on commit f6f9fce

Please sign in to comment.