fix: auto_saving_interval type (#3585)
This commit is contained in:
parent
9e7c2d0100
commit
71a9524478
3 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue