Skip to content

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 <[email protected]>
@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 <[email protected]>
@fernandezcuesta
Copy link
Contributor Author

Hi @bobh66 looks like #140 didn't include the tests from this one, not sure if it's worth including it 🤔

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