My code often just gets stuck and doesn't gracefully exit if I press a Ctrl C to stop it. Ofcourse Ctrl Z works for it to exit, but it's bad since it kinda just suspends the process instead of killing it.
It might be because of Pool, but could you maybe add a Keyboard Interrupt? That'll ensure a safer exit.
My code often just gets stuck and doesn't gracefully exit if I press a Ctrl C to stop it. Ofcourse Ctrl Z works for it to exit, but it's bad since it kinda just suspends the process instead of killing it.
It might be because of Pool, but could you maybe add a Keyboard Interrupt? That'll ensure a safer exit.