Explicitly set threaded=False when starting Flask
Due to global-requirements update kuryr-daemon got broken as it's now
required to explicitly set threaded=False when starting multi-process
Flask app. This commit fixes that. Please note that this change should
not break older versions of Flask.
Depends-On:
Closes-Bug:
@@ -128,7 +128,7 @@ class DaemonServer(object):
raise
try:
- self.application.run(address, port,
+ self.application.run(address, port, threaded=False,
processes=CONF.cni_daemon.worker_num)
except Exception:
LOG.exception('Failed to start kuryr-daemon.')
