aws / aws/containers-roadmap

[ECS] [request]: Container Dependency Not functioning as expected.

Open
#817 0 comments 1 reaction 0 assignees View on GitHub
ECS Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
What do you want us to build? Use of dependsOn to establish dependency between two containers, doesn’t work as expected for usecase where one container should start only when dependent container COMPLETEs/SUCCESS. Rather Container B dependsOn Container A with condition as ‘SUCCESS’. Container A terminates with non-zero exit code, Container B stuck in PENDING instead of termination due to dependency, making task stay in PENDING state indefinitely.

**Which service(s) is this request for?**
ECS

**Are you currently working around this issue?**
Container B depends on Container A using condition ‘COMPLETE’ instead of ‘SUCCESS’, so that non-zero exit of Container A will start Container B. Then, Container B uses tasks Metadata to determine the status of Container A exit-code and exits Container B in case Container A exited with non-zero code.

Contributor guide

Open the contributing guide

Research direction

Review the ECS container dependency behavior described for a SUCCESS condition when the prerequisite container exits non-zero. Compare that behavior with the COMPLETE workaround and define completion as preventing the dependent container and task from remaining indefinitely in PENDING.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.