Skip to content
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

Enhance the value error when missing a reqiured param. #145

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

jovany-wang
Copy link
Collaborator

@jovany-wang jovany-wang commented Jul 11, 2023

Before this PR, if you miss the party on creating a fed actor, the program will hang.
In this PR, we address that by raising a necessary ValueEerror.
Please see the unit test for more details.

@jovany-wang jovany-wang added the enhancement New feature or request label Jul 11, 2023
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Copy link
Member

@zhouaihui zhouaihui left a comment

Choose a reason for hiding this comment

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

Nice catch. LGTM.

@zhouaihui
Copy link
Member

Does this problem apply to fed function without party?

@jovany-wang
Copy link
Collaborator Author

Does this problem apply to fed function without party?

No. But func was done for that. https://github.com/ray-project/rayfed/blob/main/fed/api.py#L305

Copy link
Collaborator

@NKcqx NKcqx left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Qing Wang <kingchin1218@gmail.com>
Signed-off-by: Qing Wang <kingchin1218@gmail.com>
@jovany-wang jovany-wang merged commit 8c40078 into main Jul 11, 2023
5 checks passed
@jovany-wang jovany-wang deleted the enhance-valueerror branch July 11, 2023 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants