I guess it is tricky. I was concerned about my crons causing 5 python processes to start every time I restarted web2py. The answer is probably not that simple. When you're in dev mode and only using Python with web2py, there might be a solution. Otherwise, I suppose you have to be careful about which Python threads you kill.
- [web2py] Stopping Dev server David Warnock
- Re: [web2py] Stopping Dev server Marco Mansilla
- Re: [web2py] Stopping Dev server pbreit