MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / __lock_redis_key

Method __lock_redis_key

backend/app/models/assistant/chat.py:105–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

103 return []
104
105 def __lock_redis_key(self):
106 return f"chat:{self.assistant_id}:{self.chat_id}:lock"
107
108 async def is_chat_locked(self):
109 return await redis_conn.get_int(key=self.__lock_redis_key()) == 1

Callers 3

is_chat_lockedMethod · 0.95
lockMethod · 0.95
unlockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected