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

revad: Allow to specify a shutdown timeout #4072

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Jul 18, 2023

Wnen setting 'graceful_shutdown_timeout' revad with try to shutdown in a graceful manner when receiving an INT or TERM signal (similar to how it already behaves on SIGQUIT). This allows ongoing operations to complete before exiting.

If the shutdown didn't finish before 'graceful_shutdown_timeout' seconds the process will exit with an error code (1).

Copy link
Contributor

@kobergj kobergj left a comment

Choose a reason for hiding this comment

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

Looks good but found a small typo and have a question. Nothing critical though...

changelog/unreleased/graceful_shutdown_timeout.md Outdated Show resolved Hide resolved
cmd/revad/internal/grace/grace.go Show resolved Hide resolved
Wnen setting 'graceful_shutdown_timeout' revad with try to shutdown in a
graceful manner when receiving an INT or TERM signal (similar to how it already
behaves on SIGQUIT). This allows ongoing operations to complete before exiting.

If the shutdown didn't finish before 'graceful_shutdown_timeout' seconds the
process will exit with an error code (1).
@rhafer rhafer merged commit 0af2a07 into cs3org:edge Jul 18, 2023
6 checks passed
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.

3 participants