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

+ 2 - 1
src/core/callcenter/acd.py

@@ -54,9 +54,10 @@ class AcdService:
             self.call_service.transfer(call_info, agent_number, service_id)
 
     def try_transfer_agent(self):
-        # self.logger.info("AcdService tryTransferAgent start")
+        self.logger.info("AcdService tryTransferAgent start")
         all_task = []
         for k, v in self.holdsQueue.items():
+            self.logger.info("AcdService tryTransferAgent start, queue.k:%s, q.v", k, v.qsize())
             all_task.append(self.pool.submit(self.holds_one_queue, k, v))
         wait(all_task, timeout=6, return_when=ALL_COMPLETED)
 

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

@@ -134,6 +134,7 @@ class InboundClient:
     def do_delay_action(self, action, message):
         delay_action = DelayAction.from_json(message)
         flag = self.cache.lock_delay_action(delay_action.uuid)
+        self.logger.info("do_delay_action::action=%s, flag=%s", action, flag)
         if not flag:
             self.logger.info("异步延迟执行操作重复 action:%s msg:%s", action, message)
             return