SyntaxFix
Write A Post
Hire A Developer
Questions
You could ignore SIGINTs after shutdown starts by calling signal.signal(signal.SIGINT, signal.SIG_IGN) before you start your cleanup code.
signal.signal(signal.SIGINT, signal.SIG_IGN)