Skip to content

serve gen peek - #65243

Draft
rueian wants to merge 9 commits into
ray-project:masterfrom
rueian:eoakes/serve-gen-peek
Draft

serve gen peek#65243
rueian wants to merge 9 commits into
ray-project:masterfrom
rueian:eoakes/serve-gen-peek

Conversation

@rueian

@rueian rueian commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Continue the #64451 to fix the long-standing issue in serve where _to_object_ref blocks until the underlying result has been produced.

@rueian
rueian force-pushed the eoakes/serve-gen-peek branch 4 times, most recently from 63d186a to bbe4acf Compare August 6, 2026 00:00
…to_object_ref

Eagerly peek unary/rejection refs so to_object_ref(_async) returns immediately
instead of waiting for the replica to produce the result.

Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
@rueian
rueian force-pushed the eoakes/serve-gen-peek branch from bbe4acf to 674b6e8 Compare August 6, 2026 00:00
@rueian rueian changed the title Eoakes/serve gen peek serve gen peek Aug 6, 2026
rueian added 2 commits August 5, 2026 17:35
_to_object_ref now returns immediately, so composition must still await
the upstream ref before counting the request toward autoscaling.

Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
@rueian rueian added core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests labels Aug 6, 2026
rueian added 5 commits August 6, 2026 12:51
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
@rueian
rueian force-pushed the eoakes/serve-gen-peek branch from 1be357c to 475c5f4 Compare August 16, 2026 03:01
Signed-off-by: Rueian Huang <rueiancsie@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant