Skip to content

feat(ecs): opt out of the stable wait - #3777

Open
rgodha24 wants to merge 1 commit into
alchemy-run:mainfrom
rgodha24:ecs-skip-stable-wait
Open

rgodha24 wants to merge 1 commit into
alchemy-run:mainfrom
rgodha24:ecs-skip-stable-wait

Conversation

@rgodha24

@rgodha24 rgodha24 commented Nov 25, 2026 •

Copy link
Copy Markdown

in some cases (preview deployments, mostly) I do NOT want my deploy to wait for a stable ECS deployment.

this just makes that a configurable option.

clank context (clickme)

Problem

ECS.Service create and update always wait for the deployment's rolloutState to reach COMPLETED. For a Fargate service with no load balancer, ECS often reports COMPLETED about 2 minutes after the task is already RUNNING. In one measured case the task was running 19 s after create, and the deployment completed at 2m30s. We run short-lived preview services where that wait is most of the deploy time and nothing downstream needs it.

Change

New waitForStableDeployment?: boolean prop, default true. Behaviour is unchanged unless it is set. With false:

  • create and update return right after createService / updateService succeeds, and the Attributes come from the API response
  • ECS still runs the rollout, including the circuit breaker if configured
  • delete and drain waits are untouched

Test plan

  • Applied the same change as a local patch to @alchemy.run/aws@2.0.0-beta.87 and typechecked a consumer stack against it.
  • Not covered by the existing integration tests. Happy to add a case if there's a preferred harness for ECS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant