diff --git a/src/backend/base/langflow/__main__.py b/src/backend/base/langflow/__main__.py index 5e54c7d747c7..8f206b8bd35f 100644 --- a/src/backend/base/langflow/__main__.py +++ b/src/backend/base/langflow/__main__.py @@ -125,8 +125,8 @@ def run( help="Defines if the auto save is enabled.", envvar="LANGFLOW_AUTO_SAVING", ), - auto_saving_interval: bool = typer.Option( - True, + auto_saving_interval: int = typer.Option( + 1000, help="Defines the debounce time for the auto save.", envvar="LANGFLOW_AUTO_SAVING_INTERVAL", ), diff --git a/src/backend/base/langflow/services/settings/base.py b/src/backend/base/langflow/services/settings/base.py index 2c953b5d14a4..bb775992cfb7 100644 --- a/src/backend/base/langflow/services/settings/base.py +++ b/src/backend/base/langflow/services/settings/base.py @@ -157,7 +157,7 @@ class Settings(BaseSettings): # Config auto_saving: bool = True """If set to True, Langflow will auto save flows.""" - auto_saving_interval: int = 300 + auto_saving_interval: int = 1000 """The interval in ms at which Langflow will auto save flows.""" health_check_max_retries: int = 5 """The maximum number of retries for the health check.""" diff --git a/src/backend/base/langflow/utils/util.py b/src/backend/base/langflow/utils/util.py index aa0cea81210d..b385d1631909 100644 --- a/src/backend/base/langflow/utils/util.py +++ b/src/backend/base/langflow/utils/util.py @@ -429,7 +429,7 @@ def update_settings( components_path: Optional[Path] = None, store: bool = True, auto_saving: bool = True, - auto_saving_interval: int = 300, + auto_saving_interval: int = 1000, health_check_max_retries: int = 5, ): """Update the settings from a config file."""