Re: ApplicationDelete event

2011-10-13 Thread Michael Merickel
How about registering an atexit handler to cleanup the thread. http://docs.python.org/library/atexit.html -- Michael -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To

Re: ApplicationDelete event

2011-10-13 Thread Adam Ryan
Thanks Michael. I tried this before but it doesn't work because, I think, the interpreter isn't going through its normal termination routine since there are still threads alive. I think this is a cart before the horse sort of thing. -Adam On Oct 13, 10:06 am, Michael Merickel

Re: ApplicationDelete event

2011-10-13 Thread Chris McDonough
On Thu, 2011-10-13 at 10:16 -0700, Adam Ryan wrote: Thanks Michael. I tried this before but it doesn't work because, I think, the interpreter isn't going through its normal termination routine since there are still threads alive. I think this is a cart before the horse sort of thing. I've

Re: ApplicationDelete event

2011-10-13 Thread Adam Ryan
Rude indeed :) Thanks Chris. But it looks like paste/paste/ reloader.py hasn't been updated since 2008-10-2, and this behavior changed between pyramid 1.0 and 1.2. Regards, Adam On Oct 13, 10:21 am, Chris McDonough chr...@plope.com wrote: On Thu, 2011-10-13 at 10:16 -0700, Adam Ryan wrote:

Re: ApplicationDelete event

2011-10-13 Thread Chris McDonough
On Thu, 2011-10-13 at 11:28 -0700, Adam Ryan wrote: Rude indeed :) Thanks Chris. But it looks like paste/paste/ reloader.py hasn't been updated since 2008-10-2, and this behavior changed between pyramid 1.0 and 1.2. It's a poor idea to rely on any object's __del__ for shutdown cleanup