Skip to content

Add retries for TCS publish requests#4975

Open
P-r-e-m-i-u-m wants to merge 1 commit into
aws:masterfrom
P-r-e-m-i-u-m:codex/retry-tacs-publish
Open

Add retries for TCS publish requests#4975
P-r-e-m-i-u-m wants to merge 1 commit into
aws:masterfrom
P-r-e-m-i-u-m:codex/retry-tacs-publish

Conversation

@P-r-e-m-i-u-m

Copy link
Copy Markdown

Summary

Fixes #4105.

Adds retry handling around individual TCS publish requests for telemetry metrics and task health messages. If a transient websocket publish failure occurs, the agent now retries the generated request before giving up and returning the last error to the existing caller/logging path.

Testing

  • gofmt -w ecs-agent/tcs/client/client.go ecs-agent/tcs/client/client_test.go
  • go test -tags unit ./tcs/client from the ecs-agent module

Note: I saw another contributor had commented interest on the issue, but I did not find an open PR referencing #4105 before opening this one.

@P-r-e-m-i-u-m
P-r-e-m-i-u-m requested a review from a team as a code owner May 25, 2026 09:32
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.

Add retries for publishing metrics & health checks

1 participant