Skip to content

Commit 0bc15de

Browse files
author
Heiru Wu
committed
fix(ray): fix config not applied
1 parent 7e456ca commit 0bc15de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

instill/helpers/ray_config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,15 @@ def _update_max_replicas(self, num_replicas: int):
191191

192192
def _update_upscale_delay(self, upscale_delay_s: int):
193193
self._autoscaling_config["upscale_delay_s"] = upscale_delay_s
194+
self._deployment = self._deployment.options(
195+
autoscaling_config=self._autoscaling_config
196+
)
194197

195198
def _update_downscale_delay(self, downscale_delay_s: int):
196199
self._autoscaling_config["downscale_delay_s"] = downscale_delay_s
200+
self._deployment = self._deployment.options(
201+
autoscaling_config=self._autoscaling_config
202+
)
197203

198204
def get_deployment_handle(self):
199205
return self._deployment.bind()

0 commit comments

Comments
 (0)