Coverage for /usr/local/lib/python3.12/site-packages/prefect/settings/models/flows.py: 100%
8 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 13:38 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 13:38 +0000
1from typing import ClassVar, Union 1a
3from pydantic import AliasChoices, AliasPath, Field 1a
4from pydantic_settings import SettingsConfigDict 1a
6from prefect.settings.base import PrefectBaseSettings, build_settings_config 1a
9class FlowsSettings(PrefectBaseSettings): 1a
10 """
11 Settings for controlling flow behavior
12 """
14 model_config: ClassVar[SettingsConfigDict] = build_settings_config(("flows",)) 1a
16 default_retries: int = Field( 1a
17 default=0,
18 ge=0,
19 description="This value sets the default number of retries for all flows.",
20 validation_alias=AliasChoices(
21 AliasPath("default_retries"),
22 "prefect_flows_default_retries",
23 "prefect_flow_default_retries",
24 ),
25 )
27 default_retry_delay_seconds: Union[int, float, list[float]] = Field( 1a
28 default=0,
29 description="This value sets the default retry delay seconds for all flows.",
30 validation_alias=AliasChoices(
31 AliasPath("default_retry_delay_seconds"),
32 "prefect_flows_default_retry_delay_seconds",
33 "prefect_flow_default_retry_delay_seconds",
34 ),
35 )