Skip to content

Commit

Permalink
Update parameterization in vscode app
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Feb 20, 2025
1 parent ceb19a1 commit 812b920
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion modal/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,15 @@ async def keep_warm(self, warm_pool_size: int) -> None:
"""
)
)
# TODO deprecation warn

deprecation_warning(
(2025, 2, 24),
"The .keep_warm() method has been deprecated in favor of the more general "
".update_autoscaler(min_containers=...) method.",
pending=True,
show_source=True,
)

await self.update_autoscaler(min_containers=warm_pool_size)

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion modal/cli/programs/vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def wait_for_port(data: tuple[str, str], q: Queue):
timeout=args.get("timeout"),
secrets=[Secret.from_dict({"MODAL_LAUNCH_ARGS": json.dumps(args)})],
volumes=volumes,
concurrency_limit=1 if volume else None,
max_containers=1 if volume else None,
)
def run_vscode(q: Queue):
os.chdir("/home/coder")
Expand Down

0 comments on commit 812b920

Please sign in to comment.