(no title)
efxhoy | 1 year ago
But there’s no exception in python to catch for a SIGTERM, which is what ECS and other service mangers send when it’s time to shut down. So I had to add a signal handler. Would have been neat if SIGTERM could be caught like SIGINT with a “native” exception.
mananaysiempre|1 year ago
Spivak|1 year ago
One common pattern is raising KeyboardInterrupt from your handler so it's all handled the same.