Hey there! I’m making a discord bot in Python and hosting it on Glitch.
I know Python isn’t officially supported by Glitch, yet I like to break the limits, I guess.
I’ve encountered one problem when I’m trying to use signal.signal(), Glitch just doesn’t care if I want to exit gracefully and my signal.signal() doesn’t run.
How can I exit gracefully in Python when Glitch wants to restart my app?
Thank you
I don’t think the parallel thing would work, considering Glitch simply decides to stop all running scripts.
And what do you exactly mean by npm stop script?
Oh, turns out, it actually was running, but print() isn’t shown!
I didn’t realize the bot actually went offline when restarting meaning it was exitting gracefully because print() didn’t show up!
So yup, it does run, but the console doesn’t update or something.
I think the folks at Glitch should note this down.