add waas服务器支持多comfyui执行器

This commit is contained in:
2025-08-01 14:32:57 +08:00
parent f0ee6e21d7
commit db5d97cc49
8 changed files with 605 additions and 259 deletions

View File

@@ -12,6 +12,7 @@ fastapi_image = (
app = modal.App(image=fastapi_image, name="waas-demo")
vol = modal.Volume.from_name("comfy_model", environment_name="dev", create_if_missing=True)
secret = modal.Secret.from_name("aws-s3-secret", environment_name="dev")
with fastapi_image.imports():
@@ -20,7 +21,12 @@ with fastapi_image.imports():
memory=(128, 4096),
scaledown_window=1200,
volumes={
"/db": vol
"/db": vol,
"/waas": modal.CloudBucketMount(
bucket_name="modal-media-cache",
secret=secret,
key_prefix="waas/"
),
}
)
@modal.concurrent(max_inputs=100)