Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lab/server/pa_lab/shot.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def _check_start(app: Dict[str, Any]) -> None:
raise Refused('video_bad_signal', 'The video shows {}.'.format(signal.replace('_', ' ')))


# Transport: a file in Lab/inbox (atomic rename), answered by a journal in Lab/outbox that the
# app writes after its next 500 ms poll. A local socket is the likely replacement if poll latency
# or missed events become a measured problem; the alternatives are in lab/tooling's
# docs/design/Agent-Integration.md, "Transport: now and later".
def _write_request(lab_dir: Path, name: str, request_id: str, timeout_ms: int) -> Path:
part = lab_dir / 'outbox' / (name + '.part')
inbox = lab_dir / 'inbox' / (name + '.txt')
Expand Down
Loading