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

servenv: add --onclose_timeout flag #8651

Merged
merged 1 commit into from
Aug 20, 2021
Merged

Conversation

fatih
Copy link
Member

@fatih fatih commented Aug 20, 2021

This PR adds a new --onclose_timeout flag that adds a timeout for
onClose hooks. It's very similar to the existing --onterm_timeout
flag.

The flag will be helpful for services that use the --lameduck-period flag
in conjunction with onClose hooks. In this scenario, a service can't add
timeouts to onClose hooks; hence blocking the service shutdown.

This PR adds a new `--onclose_timeout` flag that adds a timeout for
`onClose` hooks. It's very similar to the existing `--onterm_timeout`
flag.

This will be useful for services who use the `--lameduck-period` flag
in conjuction with `onClose` hooks. In this scenario, a service doesn't
have the ability to add timeouts to `onClose` hooks, hence it could lead
a `onClose` hook to block the shutdown of a service.

Signed-off-by: Fatih Arslan <[email protected]>
@fatih fatih requested a review from deepthi as a code owner August 20, 2021 09:21
@frouioui frouioui added Component: Cluster management Type: Enhancement Logical improvement (somewhere between a bug and feature) labels Aug 20, 2021
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

LGTM

@deepthi deepthi merged commit 237c75c into main Aug 20, 2021
@deepthi deepthi deleted the faith-add-onclose-timeout branch August 20, 2021 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Cluster management Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants