mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #4565 from jmchilton/backport_uwsgi_fix
[16.01] Backport uwsgi fix from #2836.
This commit is contained in:
@@ -29,8 +29,10 @@ log = logging.getLogger( __name__ )
|
||||
# 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