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

Lower task cleanup duration #3088

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Conversation

angelcar
Copy link
Contributor

Summary

Lower minimum task clean up duration from one minute to one second.

This could help mitigate #2810

Testing

UTs, Integ & functinal tests

Description for the changelog

  • Lower task cleanup duration

Licensing

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

@@ -92,7 +92,7 @@ const (

// minimumTaskCleanupWaitDuration specifies the minimum duration to wait before cleaning up
// a task's container. This is used to enforce sane values for the config.TaskCleanupWaitDuration field.
minimumTaskCleanupWaitDuration = 1 * time.Minute
minimumTaskCleanupWaitDuration = time.Second
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, curious though why exactly this is in place, and are there any possible issues from not waiting long enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was an entirely arbitrary decision. I tested various scenarios and 1s seems to work fine.
At any rate, this is just the minimum allowed value and it will only be used if customer deems it useful.

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