Skip to content

Conversation

chrismatteson
Copy link
Contributor

No description provided.

@kumare3
Copy link
Contributor

kumare3 commented Sep 4, 2025

There is another way of doing this - https://github.com/flyteorg/flytekit/blob/44af03fca6d2d6d85b0d94e2b8a017ce0d627bec/plugins/flytekit-ray/tests/test_ray.py#L122

cc @pingsutw is this supported in v2 as well i assume

@task_env.task
async def hello_ray_nested(n: int = 3, cluster_address: str = "ray://localhost:10001") -> typing.List[int]:
# Get cluster address from environment variable
ray.init(address=cluster_address)
Copy link
Member

Choose a reason for hiding this comment

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

yes, it should just work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants