[Twisted-Python] daemon thread support
itamar at itamarst.org
Tue Dec 2 13:28:36 EST 2003
On 02 Dec 2003 17:55:05 +0000
Martin Waite <martin at datacash.com> wrote:
> Everything works fine, but I cannot get the application
> to close down cleanly - it always blocks waiting for the
> database threads to stop.
Instead of having a reader thread, have read tasks that you send to
thread. That is, don't send one function to callInThread that does a
while loop, send functions that do one task and then exit.
Also look at twisted.enterprise.adbapi and the enterprise howto.
Itamar Shtull-Trauring http://itamarst.org/
Available for Python & Twisted consulting
More information about the Twisted-Python