Skip to content

Conversation

@harshit-anyscale
Copy link
Contributor

@harshit-anyscale harshit-anyscale commented Oct 13, 2025

  • default deployment name was changed to _TaskConsumerWrapper after async inference implementation, fixed it now

@harshit-anyscale harshit-anyscale requested a review from a team as a code owner October 13, 2025 04:07
@harshit-anyscale harshit-anyscale self-assigned this Oct 13, 2025
@harshit-anyscale harshit-anyscale added the go add ONLY when ready to merge, run all tests label Oct 13, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes an issue where the default deployment name was being incorrectly set to _TaskConsumerWrapper for deployments using the @task_consumer decorator. The fix involves explicitly setting the __name__ of the wrapper class to that of the original class, which is a correct solution. A new test case is also added to verify this fix. I've suggested a small improvement to make the class wrapper more robust by copying additional attributes from the original class, which is a good practice for writing decorators.

@ray-gardener ray-gardener bot added the serve Ray Serve Related Issue label Oct 13, 2025
@abrarsheikh abrarsheikh merged commit 42b58a4 into master Oct 23, 2025
6 checks passed
@abrarsheikh abrarsheikh deleted the fix-default-dep-name branch October 23, 2025 04:05
xinyuangui2 pushed a commit to xinyuangui2/ray that referenced this pull request Oct 27, 2025
- default deployment name was changed to _TaskConsumerWrapper after
async inference implementation, fixed it now

Signed-off-by: harshit <[email protected]>
Signed-off-by: xgui <[email protected]>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
- default deployment name was changed to _TaskConsumerWrapper after
async inference implementation, fixed it now

Signed-off-by: harshit <[email protected]>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
- default deployment name was changed to _TaskConsumerWrapper after
async inference implementation, fixed it now

Signed-off-by: harshit <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
- default deployment name was changed to _TaskConsumerWrapper after
async inference implementation, fixed it now

Signed-off-by: harshit <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
abrarsheikh pushed a commit that referenced this pull request Dec 9, 2025
Fixes #58240, Related to #57664

Ensure Serve wrapper classes preserve original class metadata. Wrappers
now copy `__qualname__`,` __module__`, `__doc__`,` __annotations__`, and
`__wrapped__` in addition to `__name__`. Added tests to verify metadata
preservation for `task_consumer` and `ingress` decorators.

---------

Signed-off-by: teddygood <[email protected]>
Blaze-DSP pushed a commit to Blaze-DSP/ray that referenced this pull request Dec 18, 2025
- default deployment name was changed to _TaskConsumerWrapper after
async inference implementation, fixed it now

Signed-off-by: harshit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests serve Ray Serve Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants