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:
- All the threads I started exited.
- Does Django spawn threads to handle database connectivity?
This does not happen all the time. Not sure where I messed up. Any pointers?