Skip to content

Rename _alive_streaming_session_count; use _is_streaming helper#22755

Merged
hnyls2002 merged 5 commits intomainfrom
lsyin/session-naming-cleanup
Apr 14, 2026
Merged

Rename _alive_streaming_session_count; use _is_streaming helper#22755
hnyls2002 merged 5 commits intomainfrom
lsyin/session-naming-cleanup

Conversation

@hnyls2002
Copy link
Copy Markdown
Collaborator

Background

This is part of the streaming session memory accounting fix series (#22651). Stacked on #22753. All streaming session tests pass on H200 with strict busy check.

Changes

  • Rename _alive_streaming_session_count to _streaming_session_count: sessions in session_controller.sessions are always alive (removed on close), so "alive" adds no information.
  • Fix Prometheus Gauge documentation: "active streaming sessions" -> "streaming sessions".
  • Replace inline getattr(req, "session", None) is not None and req.session.streaming in release_kv_cache with the existing _is_streaming(req) helper from session_aware_cache.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@hnyls2002 hnyls2002 force-pushed the lsyin/session-naming-cleanup branch from efff0ef to bfa5ce0 Compare April 14, 2026 04:40
Base automatically changed from lsyin/session-double-count-fix to main April 14, 2026 20:11
@hnyls2002
Copy link
Copy Markdown
Collaborator Author

/rerun-test test_streaming_session.py

@github-actions
Copy link
Copy Markdown
Contributor

1-gpu-h100 (1 test): View workflow run

cd test/ && python3 registered/sessions/test_streaming_session.py

@hnyls2002 hnyls2002 merged commit 36891ab into main Apr 14, 2026
59 of 67 checks passed
@hnyls2002 hnyls2002 deleted the lsyin/session-naming-cleanup branch April 14, 2026 20:26
@hnyls2002 hnyls2002 mentioned this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant