mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
Merge pull request #2836 from jmchilton/pyuwsgi_fix
Fix Galaxy for if pyuwsgi is install in .venv.
This commit is contained in:
@@ -7,8 +7,10 @@ Handle postfork functions under uWSGI
|
||||
# uwsgi-managed process.
|
||||
try:
|
||||
import uwsgi
|
||||
if uwsgi.numproc:
|
||||
if hasattr(uwsgi, "numproc"):
|
||||
process_is_uwsgi = True
|
||||
else:
|
||||
process_is_uwsgi = False
|
||||
except ImportError:
|
||||
# This is not a uwsgi process, or something went horribly wrong.
|
||||
process_is_uwsgi = False
|
||||
|
||||
Reference in New Issue
Block a user