An abandoned start holds its interviewer slot for five minutes
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 43/100
Hướng nghiên cứu
Start by tracing /api/token and claim_and_dispatch, then inspect LocalDispatcher and the room task's candidate join timeout (CANDIDATE_JOIN_LIMIT). Identify how room ownership is authorized and how the existing no-show path releases consent; the proposed release endpoint should stop only an owned room that has not yet been joined. Done means an ended start releases its waiting slot promptly, while joined rooms and unauthorized callers are unaffected.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to this review comment on #519.
By the time /api/token answers, claim_and_dispatch has already claimed consent and asked the dispatcher for an interviewer. LocalDispatcher reserves a slot and spawns the room task, and the slot is released only when that task returns. The agent then waits up to CANDIDATE_JOIN_LIMIT (300 s) for the candidate to join.
Since #519 the page can give up a start after the token response. If the candidate presses End while the Strict problem loads or while the LiveKit join is still in progress, connect stops the start and leaves any room it joined, but nothing tells the server. The agent waits for a candidate who will not come, and the slot counts against max_concurrent until the 300 s run out. A guest's slot also counts against the cap of two guest interviews. Other starts in that time can be refused with "The server is running as many interviews as it can right now." For a signed-in candidate, the consent claim stays until the no-show path releases it at the end of the wait.
Proposed fix:
- Once a token was granted,
abandonStartcalls a release endpoint with the room name, for examplePOST /api/token/release. - The server releases only a room the caller owns, and does nothing once the candidate has joined. A signed-in caller can be checked against the room authorization
/api/tokenalready grants. Guests get no such grant today, so they would need their own check, or could be left out at first. - The dispatcher stops the waiting room task, which drops the slot and releases consent through the existing no-show path.
A closed tab still waits out the 300 s, since nothing can send the call then. This only covers starts the page ends itself.
- Ngôn ngữ chính
- Rust
- Star
- 215
- Fork
- 141
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 228
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sysprog21/codetrial
-
Audio output can be confirmed without playing a test soundCó thể đã có người làm @ChenYingHan1121 đã nhận 10 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
sysprog21/codetrial#359 · 6 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add update notifications for the prebuilt Windows binary ProblemCó thể đã có người làm @Yu-Ming-Chang đã nhận hôm nay. Đang mở
sysprog21/codetrial#547 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tell macOS binary users when a newer release is availableCó thể đã có người làm @LJY2000-max đã nhận hôm nay. Đang mở
sysprog21/codetrial#543 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Web lobby cannot reopen Setup after configurationCó thể đã có người làm @YEH-YU-YANG đã nhận 2 ngày trước. Đang mở
sysprog21/codetrial#525 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sysprog21/codetrial
Issue tương tự
-
area: library data-loss type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
alplabai/signex#1740 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test(fslc): the unreadable mutate catalog test pins the Unix I/O error text and fails on WindowsCó thể đã có người làm @rizumita đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ServerProperties defaults white-list to true, so a fresh --dedicated server silently locks itselfĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
horizon-rust/horizon#3888 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày