Skip to content

Conversation

@abrarsheikh
Copy link
Contributor

@abrarsheikh abrarsheikh commented Oct 11, 2025

…tate

Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: abrar <abrar@anyscale.com>
@abrarsheikh abrarsheikh added the go add ONLY when ready to merge, run all tests label Oct 11, 2025
@abrarsheikh abrarsheikh changed the title Add support for application level autoscaling [3/n] Add support for application level autoscaling Oct 11, 2025
Signed-off-by: abrar <abrar@anyscale.com>
),
)
else:
self._autoscaling_state_manager.deregister_application(self._name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to have a lingering registration if the same app_name was built with BuildAppStatus.SUCCEEDED the first time, but failed to build the second time around?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but if it failed, wouldn't user retry deploy the app anyway.

@abrarsheikh abrarsheikh force-pushed the SERVE-1216-abrar-auto branch from dbf3f53 to d7d25d2 Compare October 14, 2025 18:58
Signed-off-by: abrar <abrar@anyscale.com>
@abrarsheikh abrarsheikh force-pushed the SERVE-1216-abrar-auto branch from d7d25d2 to 9c3b266 Compare October 14, 2025 18:59
Base automatically changed from SERVE-1216-abrar-auto to master October 14, 2025 23:05
@abrarsheikh abrarsheikh marked this pull request as ready for review October 14, 2025 23:19
@abrarsheikh abrarsheikh requested a review from a team as a code owner October 14, 2025 23:19
cursor[bot]

This comment was marked as outdated.

@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Oct 15, 2025
@abrarsheikh abrarsheikh removed the core Issues that should be addressed in Ray Core label Oct 15, 2025
@abrarsheikh abrarsheikh added the serve Ray Serve Related Issue label Oct 15, 2025
Signed-off-by: abrar <abrar@anyscale.com>
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Signed-off-by: abrar <abrar@anyscale.com>
self._autoscaling_state_manager.register_application(
self._name,
AutoscalingPolicy(**checkpoint_data.config.autoscaling_policy),
)
Copy link

Choose a reason for hiding this comment

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

Bug: Type Error When Unpacking Autoscaling Policy

The code attempts to unpack autoscaling_policy into an AutoscalingPolicy object using **, assuming it's always a dictionary. This can raise a TypeError if autoscaling_policy is already an AutoscalingPolicy instance, potentially after Pydantic deserialization. This occurs during checkpoint restoration and when setting the application's target state.

Additional Locations (1)

Fix in Cursor Fix in Web

@zcin zcin merged commit 2b6663b into master Oct 16, 2025
6 checks passed
@zcin zcin deleted the SERVE-1227-abrar-app_auto branch October 16, 2025 03:33
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 20, 2025
xinyuangui2 pushed a commit to xinyuangui2/ray that referenced this pull request Oct 22, 2025
Phase 3 of
https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86

---------

Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: xgui <xgui@anyscale.com>
snorkelopstesting1-a11y pushed a commit to snorkel-marlin-repos/ray-project_ray_pr_57637_de7fa4cf-ea41-4ee9-a4f3-aa25c759127a that referenced this pull request Oct 22, 2025
snorkelopstesting4-web added a commit to snorkel-marlin-repos/ray-project_ray_pr_57637_de7fa4cf-ea41-4ee9-a4f3-aa25c759127a that referenced this pull request Oct 22, 2025
elliot-barn pushed a commit that referenced this pull request Oct 23, 2025
Phase 3 of
https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86

---------

Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
Phase 3 of
https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86

---------

Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
Phase 3 of
https://gist.github.com/abrarsheikh/abde819a199c2190baba082f0e6fdd86

---------

Signed-off-by: abrar <abrar@anyscale.com>
Signed-off-by: Future-Outlier <eric901201@gmail.com>
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 serve Ray Serve Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants