🐛 fix(__main__.py): change default number of worker processes from 2 to 1 to improve performance

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-04 10:34:37 -03:00
commit f229524cf5

View file

@ -84,7 +84,7 @@ def run(
"127.0.0.1", help="Host to bind the server to.", envvar="LANGFLOW_HOST"
),
workers: int = typer.Option(
2, help="Number of worker processes.", envvar="LANGFLOW_WORKERS"
1, 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"),