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

Add types for task protection handlers #3350

Conversation

amogh09
Copy link
Contributor

@amogh09 amogh09 commented Aug 18, 2022

Summary

Add new types to be used in Task scale-in protection API handlers.

Implementation details

A couple of new types, their constructors, and getters.

Testing

Unit tests

New tests cover the changes: yes

Description for the changelog

Add new types for task scale-in protection API

Licensing

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

Copy link
Contributor

@Realmonia Realmonia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please confirm with the control plane guys that this is aligned with finalized API.

// Protection for a Task
type taskProtection struct {
protectionType taskProtectionType
protectionTimeoutMinutes *int
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: What's the consideration of making this *int instead of int? Is this in sync with scheduler API?

@amogh09 amogh09 merged commit 77c2b65 into aws:feature/task_scale_in_protection_pass_through Aug 22, 2022
@amogh09 amogh09 deleted the task-scale-in-types branch August 22, 2022 20:50
amogh09 added a commit that referenced this pull request Aug 24, 2022
amogh09 added a commit that referenced this pull request Aug 30, 2022
Realmonia pushed a commit to Realmonia/amazon-ecs-agent that referenced this pull request Sep 13, 2022
Realmonia pushed a commit to Realmonia/amazon-ecs-agent that referenced this pull request Oct 4, 2022
Realmonia pushed a commit to Realmonia/amazon-ecs-agent that referenced this pull request Oct 4, 2022
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