Skip to content

Django + Gunicorn: How to go about running shared theading.Thread() + subprocess.popen() on startup #3202

Answered by pajod
cerahmed asked this question in Q&A
Discussion options

You must be logged in to vote

An extra web service that you do want to reconfigure on the python side? That one sounds more like an application for using a threaded worker model in gunicorn, and setting up / tearing down the shared object from the gunicorn server hooks

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@cerahmed
Comment options

@pajod
Comment options

@cerahmed
Comment options

@pajod
Comment options

Answer selected by cerahmed
@cerahmed
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants