DavidLiu 3 месяцев назад
Родитель
Сommit
8e14b1d62e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/core/callcenter/esl/client.py

+ 3 - 3
src/core/callcenter/esl/client.py

@@ -52,9 +52,9 @@ class InboundClient:
         self.host, self.port, self.password = SERVE_HOST, '8021', '4918257983818884358'
         self.executors = {x: concurrent.futures.ThreadPoolExecutor(max_workers=1) for x in range(self.thread_num)}
         self.delay_action_executor = concurrent.futures.ThreadPoolExecutor(max_workers=5)
-        # self.delay_action_scheduler = BackgroundScheduler()
-        # self.delay_action_scheduler.add_job(self.submit_delay_action, 'interval', seconds=1, max_instances=1)
-        # self.delay_action_scheduler.start()
+        self.delay_action_scheduler = BackgroundScheduler()
+        self.delay_action_scheduler.add_job(self.submit_delay_action, 'interval', seconds=1, max_instances=1)
+        self.delay_action_scheduler.start()
         threading.Thread(target=self.start, args=()).start()
 
     def submit_delay_action(self):