Closed PSanetra closed 3 weeks ago
cc @graingert, you're better at dealing with asyncio stuff than I am.
cpython doesn't define a handler for SIGTERM for synchronous code, so I don't think asyncio should either
@PSanetra, I'm going to suggest taking this to DPO. If it's not clear that something is a no-brainer, it generally has to get discussed there.
Let's close this for now
Feature or enhancement
Proposal:
32105 did introduce handling of
SIGINT
signals inasyncio.run()
. I think it makes sense to support handling ofSIGTERM
signals in the same way as both signals are intended for shutting down a process gracefully.SIGTERM
is also the default signal to stop a container: https://docs.docker.com/reference/cli/docker/container/stop/Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response