fix default dep name for async inf#57664
Merged
abrarsheikh merged 1 commit intomasterfrom Oct 23, 2025
Merged
Conversation
Signed-off-by: harshit <harshit@anyscale.com>
Contributor
There was a problem hiding this comment.
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.
abrarsheikh
approved these changes
Oct 23, 2025
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 <harshit@anyscale.com> Signed-off-by: xgui <xgui@anyscale.com>
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 <harshit@anyscale.com>
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 <harshit@anyscale.com> Signed-off-by: Aydin Abiar <aydin@anyscale.com>
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 <harshit@anyscale.com> Signed-off-by: Future-Outlier <eric901201@gmail.com>
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 <ibear6954@gmail.com>
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 <harshit@anyscale.com>
peterxcli
pushed a commit
to peterxcli/ray
that referenced
this pull request
Feb 25, 2026
- default deployment name was changed to _TaskConsumerWrapper after async inference implementation, fixed it now Signed-off-by: harshit <harshit@anyscale.com> Signed-off-by: peterxcli <peterxcli@gmail.com>
peterxcli
pushed a commit
to peterxcli/ray
that referenced
this pull request
Feb 25, 2026
…58478) Fixes ray-project#58240, Related to ray-project#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 <ibear6954@gmail.com> Signed-off-by: peterxcli <peterxcli@gmail.com>
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.
Uh oh!
There was an error while loading. Please reload this page.