aws / aws/containers-roadmap

Return different error code for different error message

Open
#687 0 comments 2 reactions 0 assignees View on GitHub
ECS
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Summary
Categorize different error messages and give them different error code. So customers can use it to implement their own handling logic.

### Description
One customer's use case:

The tasks that are running are getting intermittent "CannotPullContainer" errors and are failing the tasks instead of retrying the Container request due to the error code coming back from the API.

When the task fails, it would be better to return back a response code of 500 or retry the task.The cx has different retry codes that would handle the step function task if the status code was different. There does not seem to be a specific error code for “CannontPullContainer” at this time.

### Environment Details

### Supporting Log Snippets

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or entry points are named. Start by tracing the CannotPullContainer response through the ECS task failure and Step Functions retry flow, then define the error categories and response codes; done means customers can distinguish this error and apply retry handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
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.