|
@@ -837,7 +837,7 @@ class AgentStateService:
|
|
|
def idle_hash(self, saas_id, agent_id, phone_num, service_id):
|
|
|
key = self._key(saas_id, service_id)
|
|
|
state_data = AgentStateData()
|
|
|
- self.logger.info("idle_hash, key=%s, saas_id=%s, phone_num=%s"%(key, saas_id, phone_num))
|
|
|
+ # self.logger.info("idle_hash, key=%s, saas_id=%s, phone_num=%s", key, saas_id, phone_num)
|
|
|
cache_agent_map = self.get_cache_agent_map(saas_id, service_id)
|
|
|
if cache_agent_map and phone_num in cache_agent_map:
|
|
|
state_data = cache_agent_map[phone_num]
|
|
@@ -847,6 +847,7 @@ class AgentStateService:
|
|
|
self.redis_handler.redis.hset(key, phone_num, state_data.to_json_string())
|
|
|
self.redis_handler.redis.expire(key, self._get_expire_time())
|
|
|
# self.update_report_state(saas_id, service_id)
|
|
|
+ self.logger.info("idle_hash, key=%s, saas_id=%s, phone_num=%s, state_data=%s"%(key, saas_id, phone_num, state_data))
|
|
|
|
|
|
def busy_hash(self, saas_id, agent_id, phone_num, service_id):
|
|
|
cache_agent_map = self.get_cache_agent_map(saas_id, service_id)
|