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

[reefd] add windows instance reaper #261

Merged
merged 3 commits into from
Mar 31, 2025
Merged

[reefd] add windows instance reaper #261

merged 3 commits into from
Mar 31, 2025

Conversation

aslonnie
Copy link
Collaborator

terminates windows instance that runs for too long

terminates windows instance that runs for too long

Signed-off-by: Lonnie Liu <[email protected]>
@aslonnie aslonnie requested a review from khluu March 24, 2025 04:52
},
}}
input := &ec2.DescribeInstancesInput{Filters: filters}
result, err := r.ec2.DescribeInstances(ctx, input)
Copy link
Contributor

Choose a reason for hiding this comment

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

It might not happen but is there a limit on what DescribeInstances returns before it starts the next page. Should we do pagination here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, that is a good point. let me have a look.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added a MaxResults of 500. we will rerun the reaper repeatedly until it terminates nothing.

@aslonnie aslonnie merged commit 943c8ed into main Mar 31, 2025
1 check passed
@aslonnie aslonnie deleted the lonnie-250323-reaper branch March 31, 2025 18:45
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.

2 participants