Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
fix: enable autoscaling for websocket flows
Browse files Browse the repository at this point in the history
  • Loading branch information
deepankarm committed Apr 20, 2023
1 parent d27e305 commit b84f5d2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lcserve/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,6 @@ def get_gateway_jcloud_args(
autoscale: AutoscaleConfig = AutoscaleConfig(),
websocket: bool = False,
) -> Dict:
_autoscale_args = autoscale.to_dict() if autoscale else {}
if (
websocket
): # # TODO: remove this when websocket + autoscale is supported in JCloud
_autoscale_args = {}

return {
'jcloud': {
'expose': True,
Expand All @@ -395,7 +389,7 @@ def get_gateway_jcloud_args(
'capacity': 'spot',
},
'healthcheck': False if websocket else True,
**_autoscale_args,
**(autoscale.to_dict() if autoscale else {}),
}
}

Expand Down

0 comments on commit b84f5d2

Please sign in to comment.