Skip to content

Conversation

@kouroshHakha
Copy link
Contributor

@kouroshHakha kouroshHakha commented Jun 18, 2025

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>

self.response_postprocessor = ResponsePostprocessor()

@property
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is useless. I don't know why we had it. removing.


try:
return await asyncio.wait_for(self.engine.check_health(), timeout=15)
await asyncio.wait_for(self.engine.check_health(), timeout=15)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed the timeout time since ray serve has an adjustable timeout per deployment anyways.

):
yield chunk

async def check_health(self) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These must be removed. In general the health check of a deployment is not bounded to the health check of its child deployments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc @lk-chen fyi


async def check_health(self):
await self._init_completed.wait()
await asyncio.gather(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same thing applies here.

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
model="Qwen/Qwen2.5-0.5B-Instruct",
dtype="auto",
disable_log_stats=False,
enforce_eager=True,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Making the tests faster

@kouroshHakha kouroshHakha marked this pull request as ready for review June 19, 2025 02:50
@kouroshHakha kouroshHakha requested a review from a team as a code owner June 19, 2025 02:50
@kouroshHakha kouroshHakha requested a review from eicherseiji June 19, 2025 02:52
@eicherseiji eicherseiji added the go add ONLY when ready to merge, run all tests label Jun 19, 2025
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>

await router.check_health()

assert server.check_health.remote.call_count == 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

testing router's health check has nothing to do with server's health check.

@kouroshHakha kouroshHakha merged commit 55b8ce9 into ray-project:master Jun 22, 2025
5 checks passed
minerharry pushed a commit to minerharry/ray that referenced this pull request Jun 27, 2025
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
snorkelopstesting4-web pushed a commit to snorkel-marlin-repos/ray-project_ray_pr_53937_454bb92f-28e4-4f99-921b-de7d319af18f that referenced this pull request Oct 22, 2025
Original PR #53937 by kouroshHakha
Original: ray-project/ray#53937
snorkelopstesting3-bot added a commit to snorkel-marlin-repos/ray-project_ray_pr_53937_454bb92f-28e4-4f99-921b-de7d319af18f that referenced this pull request Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants