Skip to content

Commit

Permalink
fix: auto_saving_interval type (#3585)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzming authored Aug 28, 2024
1 parent 9e7c2d0 commit 71a9524
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/backend/base/langflow/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 71a9524

Please sign in to comment.