-
Notifications
You must be signed in to change notification settings - Fork 7.1k
fix default dep name for async inf #57664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: harshit <[email protected]>
There was a problem hiding this 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.
- 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]>
- default deployment name was changed to _TaskConsumerWrapper after async inference implementation, fixed it now Signed-off-by: harshit <[email protected]>
- 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]>
- 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]>
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]>
- default deployment name was changed to _TaskConsumerWrapper after async inference implementation, fixed it now Signed-off-by: harshit <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.