-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[core] Support .options
chaining in actor.options
#51836
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: rmeng <rob.xu.meng@gmail.com>
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
|
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.
Thank you for contributing! I've left a few small comments. I've also triggered premerge.
@@ -874,7 +874,18 @@ def method(self): | |||
updated_options["runtime_env"] | |||
) | |||
< 8000 td class="blob-code blob-code-context"> | |||
actor = self |
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.
Can you reuse actor_cls
defined a few lines above?
class ActorOptionWrapper: | ||
def options(self, **options): |
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.
Can you add type hints for the function signature?
@chebbyChefNEQ are you still working on this? |
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
Why are these changes needed?
to support calling actor options like so
Related issue number
Closes #51835
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.