durusmail: quixote-users: mod_python, quixote, reloads
mod_python, quixote, reloads
2003-03-17
2003-03-18
2003-03-18
2003-03-18
2003-03-20
2003-03-20
Re: mod_python, quixote, reloads
2003-03-21
2003-03-20
2003-03-18
mod_python, quixote, reloads
Titus Brown
2003-03-18
-> > Has anyone come up with a way to get quixote modules to get reloaded when
-> > they've been modified when running under mod_python?
->
-> I have been down that road several times in the past, and it *always*
-> ended in tears.  Module reloading is a convenient little hack in an
-> interactive interpreter, but in a real-world long-lived process, it is
-> always doomed to failure.  Always.  Unfortunately, it's been several
-> years since I bashed my head against this particular brick wall, so I
-> don't remember the details.  But I tried a *lot* of tricks, and they all
-> came to nothing in the end.
->
-> In other words: give up.  You have better things to spend your time on.

Seconded.  Been there, failed to do that.

-> (Here's a loopy idea: put code in your Quixote that hunts down the
-> process that needs to be killed to restart: os.getpid() for SCGI, maybe
-> the same for mod_python, I dunno.  Then add a "restart" link to your app
-> for debugging.  It might work.)

Or, figure out how to kill 'em from within.  For example, with AOLserver,
there's a 'shutdown' command; there must be one in Apache, too...

--titus

reply