sqlmesh.core.config.run
1from __future__ import annotations 2 3from sqlmesh.core.config.base import BaseConfig 4from sqlmesh.utils.errors import ConfigError 5from sqlmesh.utils.pydantic import field_validator 6 7 8class RunConfig(BaseConfig): 9 """A configuration for `sqlmesh run` command. 10 11 Args: 12 environment_check_interval: Interval in seconds between environment checks. 13 environment_check_max_wait: Maximum time in seconds to wait for environment to be ready. 14 """ 15 16 environment_check_interval: int = 30 17 environment_check_max_wait: int = 6 * 60 * 60 # 6 hours by default 18 19 @field_validator("environment_check_interval", "environment_check_max_wait", mode="after") 20 @classmethod 21 def _validate_positive_int(cls, v: int) -> int: 22 if v <= 0: 23 raise ConfigError(f"Value must be a positive integer, got {v}") 24 return v
9class RunConfig(BaseConfig): 10 """A configuration for `sqlmesh run` command. 11 12 Args: 13 environment_check_interval: Interval in seconds between environment checks. 14 environment_check_max_wait: Maximum time in seconds to wait for environment to be ready. 15 """ 16 17 environment_check_interval: int = 30 18 environment_check_max_wait: int = 6 * 60 * 60 # 6 hours by default 19 20 @field_validator("environment_check_interval", "environment_check_max_wait", mode="after") 21 @classmethod 22 def _validate_positive_int(cls, v: int) -> int: 23 if v <= 0: 24 raise ConfigError(f"Value must be a positive integer, got {v}") 25 return v
A configuration for sqlmesh run
command.
Arguments:
- environment_check_interval: Interval in seconds between environment checks.
- environment_check_max_wait: Maximum time in seconds to wait for environment to be ready.
Inherited Members
- pydantic.main.BaseModel
- BaseModel
- model_extra
- model_fields_set
- model_construct
- model_copy
- model_dump
- model_dump_json
- model_json_schema
- model_parametrized_name
- model_rebuild
- model_validate
- model_validate_json
- model_validate_strings
- parse_file
- from_orm
- construct
- schema
- schema_json
- validate
- update_forward_refs