Skip to content

Commit

Permalink
🐛 Workers and reload are only possible when app import string
Browse files Browse the repository at this point in the history
  • Loading branch information
migduroli authored and perdy committed Jan 19, 2023
1 parent 55473d6 commit e1df41e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions flama/cli/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@
help="Bind socket to this port.",
show_default=True,
)
@click.option(
"--dev",
envvar="DEV",
is_flag=True,
default=False,
show_default=True,
help="Development mode (enables auto-reload).",
)
@click.option(
"--workers",
default=None,
type=int,
help="Number of worker processes. Defaults to the $WEB_CONCURRENCY environment"
" variable if available, or 1. Not valid with --dev.",
)
def serve(
model_path: str,
model_url: str,
Expand All @@ -59,8 +44,6 @@ def serve(
app_description: str,
host: str,
port: int,
dev: bool,
workers: int,
):
"""
Serve the ML model file at <MODEL_PATH> within a Flama Application.
Expand Down

0 comments on commit e1df41e

Please sign in to comment.