views:

129

answers:

0

I have a standalone threaded python application in which I use Django's ORM (Postgres). After I join all my threads and wait for the application to exit(sys.exit(0)), there is still an extra thread running, for which the sys.exit waits:

  1. All the threads I started exited.
  2. Does Django spawn threads to handle database connectivity?

This does not happen all the time. Not sure where I messed up. Any pointers?