Skip to content

[core][compiled graphs] streaming support for actors in compiled graphs #48917

Open
@wingkitlee0

Description

@wingkitlee0

Description

The following actor works with .remote() but not .bind()

@ray.remote
class Mapper:
    def __init__(self, func):
        self.func = func

    def map(self, x: Iterable[Any]) -> Iterator[Any]:
        for item in x:
            yield self.func(item)

map_func = Mapper.remote(lambda x: x * x)

Use case

I was trying to re-implement some Dask functions in Ray, e.g., dask bag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issue, but not time-criticalcommunity-backlogcompiled-graphscoreIssues that should be addressed in Ray CoreenhancementRequest for new feature and/or capability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions