Skip to content

queue

queue api endpoints.

get_queue(response: Response, db: Annotated[AsyncSession, Depends(get_db)], session: Session = Depends(require_auth)) -> QueueResponse

get current queue state with ETag for caching.

update_queue(update: QueueUpdate, session: Session = Depends(require_auth), if_match: Annotated[str | None, Header()] = None) -> QueueResponse

update 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.

queue state response model.

queue state update model.