|
@@ -560,7 +560,7 @@ class AgentStateService:
|
|
|
if not cache_agent_list:
|
|
|
return []
|
|
|
agent_str = '\n'.join(["%s-%s-%s-%s".format(x.phone_num, x.status, x.time, x.assign_time) for x in cache_agent_list])
|
|
|
- self.logger.info("assignAgent %s %s idleAgents:%s ", saas_id, service_id, agent_str)
|
|
|
+ print("assignAgent %s %s idleAgents:%s "% (saas_id, service_id, agent_str), flush=True)
|
|
|
return self.get_idle_agents(cache_agent_list)
|
|
|
|
|
|
def idle_hash(self, saas_id, agent_id, phone_num, service_id):
|
|
@@ -600,7 +600,7 @@ class AgentStateService:
|
|
|
def get_cache_agent_list(self, saas_id, service_id):
|
|
|
redis_key = self._key(saas_id, service_id)
|
|
|
map_cache_by_key = self.redis_handler.redis.hgetall(redis_key)
|
|
|
-
|
|
|
+ print("get_cache_agent_list, redis_key=%s, map_cache_by_key=%s"%(redis_key, map_cache_by_key), flush=True)
|
|
|
if not map_cache_by_key: # 检查字典是否为空
|
|
|
return [] # 返回空列表
|
|
|
|