feat: persist queue probe metadata

This commit is contained in:
Josh Creek
2026-09-01 09:37:47 +01:00
parent e170bcf0ef
commit 25cc182793
6 changed files with 64 additions and 24 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ var (
// QueueTicketInsertSQL relies on the partial unique index in migration 0001
// as the cross-replica one-active-ticket fence.
QueueTicketInsertSQL = `INSERT INTO queue_tickets
(ticket_id, player_id, playlist, state, client_build, protocol_version, enqueued_at, expires_at)
VALUES ($1, $2, $3, 'QUEUED', $4, $5, $6, $7)`
(ticket_id, player_id, playlist, state, client_build, protocol_version, enqueued_at, expires_at, predicted_rtt)
VALUES ($1, $2, $3, 'QUEUED', $4, $5, $6, $7, $8)`
// CandidateClaimSQL must run in the same serializable transaction as
// ProposalParticipantInsertSQL. SKIP LOCKED lets another matcher continue,