fix: auto_saving_interval type (#3585)

This commit is contained in:
ming 2024-08-28 08:12:37 -04:00 committed by GitHub
commit 71a9524478
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -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",
),

View file

@ -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."""

View file

@ -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."""