Merge pull request #2418 from duanhongyi/master

fix: repair django wsgi running error
This commit is contained in:
Benoit Chesneau 2020-09-18 16:36:20 +02:00 committed by GitHub
commit 1ae46ca092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,8 @@ class TornadoWorker(Worker):
if not isinstance(app, tornado.web.Application) or \
isinstance(app, tornado.wsgi.WSGIApplication):
app = WSGIContainer(app)
elif not isinstance(app, WSGIContainer):
app = WSGIContainer(app)
# Monkey-patching HTTPConnection.finish to count the
# number of requests being handled by Tornado. This