Skip to content

Conversation

@JadenFiotto-Kaufman
Copy link
Member

No description provided.

if not verify_connection(host, port):
raise ConnectionError(f"Ray is not listening on {host}:{port}")

logger.info(f"Connecting to Ray at {cls.ray_url}...")
Copy link
Member

@MichaelRipa MichaelRipa Nov 19, 2025

Choose a reason for hiding this comment

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

This logging is useful for me, so I'm adding it back in

@MichaelRipa
Copy link
Member

I am trying to see whether I can assign a unique name for the logger for each task

logger.info("Connected to Ray")

@classmethod
def connected(cls) -> bool:
Copy link
Member

Choose a reason for hiding this comment

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

Just so you are aware, I profiled this method and the added ray.get_actor() is significantly slower (high variance, but the slowest was just over 5 seconds).

Copy link
Member Author

Choose a reason for hiding this comment

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

Which is fine because connected is only called if theres some critical error in the first place. I think its good to know youre truly connected if you can access the controller. Also makes it so if you run a test script right after brining it up, you wont get the error saying controller does not exist

@MichaelRipa MichaelRipa mentioned this pull request Nov 20, 2025
@MichaelRipa MichaelRipa merged commit b234326 into dev Nov 21, 2025
@MichaelRipa MichaelRipa deleted the async-queue branch November 21, 2025 16:44
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