perf(webui): batch startup recovery and authenticate before React (#6708)
This commit is contained in:
1 parent
9652302324
commit
273582916b
26 files changed
+537
-330
No files matched your search
@@ -872,6 +872,19 @@ class SessionState:
|
||||
None, lambda: self._store.set_archived_keys(values), operation_name="set_archived_keys",
|
||||
)
|
||||
|
||||
async def typed_session_headers(self, session_type: str) -> list[tuple[str, dict[str, Any]]]:
|
||||
return await self._execute(
|
||||
None, lambda: self._store.typed_session_headers(session_type),
|
||||
operation_name="typed_session_headers", write=False,
|
||||
)
|
||||
|
||||
async def recovery_candidates(self, key_prefix: str) -> list[tuple[str, bool]]:
|
||||
"""Take one ordered read snapshot before startup admits new work."""
|
||||
return await self._execute(
|
||||
None, lambda: self._store.recovery_candidates(key_prefix),
|
||||
operation_name="recovery_candidates", write=False,
|
||||
)
|
||||
|
||||
async def list_sessions(self) -> list[dict[str, Any]]:
|
||||
return await self._execute(
|
||||
None,
|
||||
|
||||
Reference in new issue
Block a user