queue
backend.api.queue
Section titled “backend.api.queue”queue api endpoints.
Functions
Section titled “Functions”get_queue source
Section titled “get_queue source”get_queue(response: Response, db: Annotated[AsyncSession, Depends(get_db)], session: Session = Depends(require_auth)) -> QueueResponseget current queue state with ETag for caching.
update_queue source
Section titled “update_queue source”update_queue(update: QueueUpdate, session: Session = Depends(require_auth), if_match: Annotated[str | None, Header()] = None) -> QueueResponseupdate queue state with optimistic locking via If-Match header.
the If-Match header should contain the expected revision number (as ETag). if there’s a conflict (revision mismatch), returns 409.
Classes
Section titled “Classes”QueueResponse source
Section titled “QueueResponse source”queue state response model.
QueueUpdate source
Section titled “QueueUpdate source”queue state update model.