MCPcopy Create free account
hub / github.com/HKUDS/Paper2Slides / start_session

Method start_session

api/server.py:51–59  ·  view source on GitHub ↗

Try to start a new session. Returns False if another session is already running

(self, session_id: str)

Source from the content-addressed store, hash-verified

49 self.lock = asyncio.Lock()
50
51 async def start_session(self, session_id: str) -> bool:
52 """Try to start a new session. Returns False if another session is already running"""
53 async with self.lock:
54 if self.running_session is not None:
55 return False
56 self.running_session = session_id
57 # Remove from cancelled set when starting (for regeneration cases)
58 self.cancelled_sessions.discard(session_id)
59 return True
60
61 async def end_session(self, session_id: str):
62 """End a session"""

Callers 1

run_pipeline_backgroundFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected