Skip to content

[data] fix bug in docs enable_true_multi_threading#60515

Merged
bveeramani merged 3 commits intoray-project:masterfrom
iamjustinhsu:jhsu/fix-docs-for-enable_true_multi_threading
Jan 27, 2026
Merged

[data] fix bug in docs enable_true_multi_threading#60515
bveeramani merged 3 commits intoray-project:masterfrom
iamjustinhsu:jhsu/fix-docs-for-enable_true_multi_threading

Conversation

@iamjustinhsu
Copy link
Copy Markdown
Contributor

Description

This should say False

Related issues

Additional information

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
@iamjustinhsu iamjustinhsu requested a review from a team as a code owner January 27, 2026 00:07
@iamjustinhsu iamjustinhsu added the go add ONLY when ready to merge, run all tests label Jan 27, 2026
Copy link
Copy Markdown
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

The pull request includes a crucial documentation fix for the enable_true_multi_threading parameter in the ActorPoolStrategy.__init__ method. This correction clarifies that setting enable_true_multi_threading=False limits actor tasks to one per actor, which aligns with the parameter's default behavior and significantly improves the accuracy of the API documentation.

Comment on lines 133 to 134
enable_true_multi_threading: If enable_true_multi_threading=False, no more than 1 actor task
runs per actor. Otherwise, respects the `max_concurrency` argument.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think "runs" is ambiguous here, and I'm worried this docstring might confuse users if users set enable_true_multi_threading=False but Ray Data launches multiple active tasks per actor (which is the default behavior). Is there a way we could remove this ambiguity?

I don't have a good alternative off the top of my head.

Copy link
Copy Markdown
Contributor Author

@iamjustinhsu iamjustinhsu Jan 27, 2026

Choose a reason for hiding this comment

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

yea it's kinda of an implementation detail, but as far as the user is concerned, their UDF will "behave" as if one is running at a time per actor, even if that's not what's going on under the hood. I left a larger explanation in the source code and (docs) that goes into more detail for advanced users. What are ur thoughts on just pointing them to that direction as well? I updated my PR to reflect that without the link

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
Co-authored-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: iamjustinhsu <140442892+iamjustinhsu@users.noreply.github.com>
@ray-gardener ray-gardener bot added docs An issue or change related to documentation data Ray Data-related issues labels Jan 27, 2026
@bveeramani bveeramani merged commit be6dd58 into ray-project:master Jan 27, 2026
6 checks passed
jinbum-kim pushed a commit to jinbum-kim/ray that referenced this pull request Jan 29, 2026
## Description
This should say `False`

## Related issues

## Additional information

---------

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
Signed-off-by: iamjustinhsu <140442892+iamjustinhsu@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: jinbum-kim <jinbum9958@gmail.com>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jan 29, 2026
## Description
This should say `False`

## Related issues

## Additional information

---------

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
Signed-off-by: iamjustinhsu <140442892+iamjustinhsu@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <bveeramani@berkeley.edu>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Feb 1, 2026
## Description
This should say `False`

## Related issues

## Additional information

---------

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
Signed-off-by: iamjustinhsu <140442892+iamjustinhsu@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: 400Ping <jiekaichang@apache.org>
ans9868 pushed a commit to ans9868/ray that referenced this pull request Feb 18, 2026
## Description
This should say `False`

## Related issues

## Additional information

---------

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
Signed-off-by: iamjustinhsu <140442892+iamjustinhsu@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: Adel Nour <ans9868@nyu.edu>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
## Description
This should say `False`

## Related issues

## Additional information

---------

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
Signed-off-by: iamjustinhsu <140442892+iamjustinhsu@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: peterxcli <peterxcli@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
## Description
This should say `False`

## Related issues

## Additional information

---------

Signed-off-by: iamjustinhsu <jhsu@anyscale.com>
Signed-off-by: iamjustinhsu <140442892+iamjustinhsu@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues docs An issue or change related to documentation go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants