Browse Source

Fix Modal deprecation warning: keep_warm → min_containers

Cameron Pfiffer 6 months ago
parent
commit
cb193bb429
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -110,7 +110,7 @@ async def health():
 @app.function(
 @app.function(
     image=image,
     image=image,
     secrets=[],  # No secrets needed anymore!
     secrets=[],  # No secrets needed anymore!
-    keep_warm=1,  # Keep one instance warm
+    min_containers=1,  # Keep one instance warm
 )
 )
 @modal.asgi_app()
 @modal.asgi_app()
 def api():
 def api():