🐛 fix(__main__.py): change default value of workers option from -1 to 2 to limit the number of worker processes

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-28 15:17:03 -03:00
commit bdc62ba725

View file

@ -122,7 +122,7 @@ def serve(
"127.0.0.1", help="Host to bind the server to.", envvar="LANGFLOW_HOST"
),
workers: int = typer.Option(
-1, help="Number of worker processes.", envvar="LANGFLOW_WORKERS"
2, help="Number of worker processes.", envvar="LANGFLOW_WORKERS"
),
timeout: int = typer.Option(300, help="Worker timeout in seconds."),
port: int = typer.Option(7860, help="Port to listen on.", envvar="LANGFLOW_PORT"),