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

Method is_chat_locked

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

Source from the content-addressed store, hash-verified

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
110
111 async def lock(self):
112 await redis_conn.set_int(key=self.__lock_redis_key(), value=1, expire=120)

Callers 1

prepareMethod · 0.80

Calls 2

__lock_redis_keyMethod · 0.95
get_intMethod · 0.80

Tested by

no test coverage detected