Expose aggregate submission queue status#503
Closed
msaroufim wants to merge 1 commit into
Closed
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||
Member
Author
|
Additional local e2e validation after opening the PR:
This verifies the API response shape and CLI display path end to end without invoking Modal/GitHub. |
cc4eeaa to
02f454d
Compare
Member
Author
|
Updated after simplifying the queue status shape. Local e2e validation with a real HTTP path still passes:
The public queue payload is now limited to |
Member
Author
|
Closing this draft; queue-position metadata does not answer the more useful wait-time/debugging question. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds aggregate submission queue metadata to KernelBot background submissions without exposing other users' identities or submission IDs.
The API now returns a
queueobject on submission acceptance and on user submission polling. It includes the caller's position, jobs ahead, pending/running counts, worker counts, and a flag clarifying that external runner queues are not visible.Why
Users can see whether they are waiting in KernelBot's in-process queue versus waiting on runner execution, while avoiding disclosure of who else is queued.
Validation
uv run --with pytest --with pytest-asyncio pytest tests/test_background_submission_manager.py tests/test_admin_api.py