DavidLiu 3 сар өмнө
parent
commit
6837d0d58b

+ 2 - 1
src/core/callcenter/esl/client.py

@@ -101,7 +101,8 @@ class InboundClient:
                     self.start()
                     self.start()
                 else:
                 else:
                     registry.FLASK_ACTIVE_THREADS.set(threading.active_count())
                     registry.FLASK_ACTIVE_THREADS.set(threading.active_count())
-                    self.choose_thread_pool_executor(e).submit(self.process_esl_event, e)
+                    threading.Thread(target=self.process_esl_event, args=(e,)).start()
+                    # self.choose_thread_pool_executor(e).submit(self.process_esl_event, e)
 
 
     def choose_thread_pool_executor(self, e):
     def choose_thread_pool_executor(self, e):
         call_id = EslEventUtil.getCallId(e)
         call_id = EslEventUtil.getCallId(e)