(
self,
config: CommunicationConfig,
openspace_factory: OpenSpaceFactory,
)
| 75 | |
| 76 | class SessionRuntimeManager: |
| 77 | def __init__( |
| 78 | self, |
| 79 | config: CommunicationConfig, |
| 80 | openspace_factory: OpenSpaceFactory, |
| 81 | ): |
| 82 | self.config = config |
| 83 | self._openspace_factory = openspace_factory |
| 84 | self._runtimes: Dict[str, SessionRuntime] = {} |
| 85 | self._lock = asyncio.Lock() |
| 86 | self._semaphore = asyncio.Semaphore(config.sessions.max_parallel_sessions) |
| 87 | self._eviction_task: Optional[asyncio.Task] = None |
| 88 | |
| 89 | async def start(self) -> None: |
| 90 | if self._eviction_task is None: |
nothing calls this directly
no outgoing calls
no test coverage detected