Kaynağa Gözat

number of thread is wrong...?

Bob Huang 3 yıl önce
ebeveyn
işleme
ffe34b21fb
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      backend_refactor/app.py

+ 1 - 1
backend_refactor/app.py

@@ -30,7 +30,6 @@ with app.app_context():
     # db.drop_all()
     db.create_all()
 
-init_workers()
 
 try:
     os.mkdir(UPLOAD_DIR + "/result")
@@ -67,4 +66,5 @@ def error_handler(e):
 
 
 if __name__ == '__main__':
+    init_workers()
     app.run()