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

fix: handle sigterm #130

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

fernandezcuesta
Copy link
Contributor

@fernandezcuesta fernandezcuesta commented Feb 17, 2025

Description of your changes

Python based functions are not properly handling SIGTERM and as a consequence, are slow to shut down as raised in #109.
This PR adds a handler for SIGTERM which essentially calls server.stop() to gracefully terminate connections with a given grace period (5 seconds).

Fixes #109

I have:

Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
@fernandezcuesta fernandezcuesta marked this pull request as draft February 17, 2025 21:58
@fernandezcuesta fernandezcuesta marked this pull request as ready for review February 18, 2025 10:11
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
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.

Python functions shut down slowly
1 participant