|
@@ -903,7 +903,7 @@ class AgentStateService:
|
|
|
|
|
|
def handle_lock_agent(self, choose_phone_num, saas_id, service_id='00000000000000000'):
|
|
|
key = self._lock_key(saas_id, service_id, choose_phone_num)
|
|
|
- self.redis_handler.redis.set(key, 1, nx=True, expire=self._get_expire_time())
|
|
|
+ self.redis_handler.redis.set(key, 1, nx=True, px=self._get_expire_time())
|
|
|
self.logger.info('lockAgent %s %s %s'% (saas_id, service_id, choose_phone_num))
|
|
|
|
|
|
def handle_release_agent_lock(self, choose_phone_num, saas_id, service_id='00000000000000000'):
|