Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip sending STSC events for internal tasks #3541

Merged
merged 1 commit into from
Jan 24, 2023
Merged

Conversation

yinyic
Copy link
Contributor

@yinyic yinyic commented Jan 24, 2023

Summary

We are currently sending STSC events for AppNet relay task. This task is initiated and managed by ECS Agent to support Service Connect feature, and not meant to be exposed to customers. Therefore, we should not be sending STSC events for it.

Implementation details

Adding a condition check to skip creating STSC events for internal tasks.

Testing

  • make test
  • tested updated Agent with SC task, observed following log message
level=error time=2023-01-24T18:04:42Z msg="Skipping emitting event for task due to error" task="service-connect-relay-935909be-9c11-11ed-92a6-0a2da05dafe1" reason="" error="skip creating task stage change event for internal task arn:::::/service-connect-relay-935909be-9c11-11ed-92a6-0a2da05dafe1"

New tests cover the changes: no

Description for the changelog

Skip sending STSC events for internal tasks

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@yinyic yinyic requested a review from a team as a code owner January 24, 2023 16:37
@yinyic yinyic merged commit 491e3c4 into aws:dev Jan 24, 2023
@yinyic yinyic deleted the sc-stsc-fix branch June 13, 2023 20:20
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.

4 participants