perf(data): bound lidar readers and lab session loading
This commit is contained in:
@@ -353,7 +353,6 @@ def build_session_router(
|
||||
**(
|
||||
{
|
||||
"preparation": _catalog_preparation_document(
|
||||
store,
|
||||
recording_preparation_manager,
|
||||
item.session_id,
|
||||
item.replayable,
|
||||
@@ -1530,7 +1529,6 @@ def _require_matching_recording_generation(
|
||||
|
||||
|
||||
def _catalog_preparation_document(
|
||||
store: SessionStore,
|
||||
manager: SessionRecordingPreparationManager | None,
|
||||
session_id: str,
|
||||
replayable: bool,
|
||||
@@ -1538,16 +1536,6 @@ def _catalog_preparation_document(
|
||||
if manager is None or not replayable:
|
||||
return None
|
||||
snapshot = manager.status(session_id)
|
||||
if snapshot is None:
|
||||
try:
|
||||
snapshot = manager.restore_published(store.prepare_replay(session_id))
|
||||
except (
|
||||
SessionNotFoundError,
|
||||
SessionNotReplayableError,
|
||||
SessionIntegrityError,
|
||||
ValueError,
|
||||
):
|
||||
return None
|
||||
if snapshot is None:
|
||||
return None
|
||||
document: dict[str, Any] = {
|
||||
|
||||
Reference in New Issue
Block a user