RuntimeError: The scheduler seems to be running under uWSGI, but threads have been disabled.

原因:
uwsgi 默认one thread one processor ,所以在没有请求的时候,导致部分进程被挂起
办法:
uwsgi.ini 文件中加入
# 解决APSchedler任务不能执行 enable-threads = true preload=True lazy-apps=true

你可能感兴趣的:(RuntimeError: The scheduler seems to be running under uWSGI, but threads have been disabled.)