-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create
ServerFlowRunGraphSettings
model
- Loading branch information
1 parent
ee31871
commit 6b02e51
Showing
4 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from pydantic import AliasChoices, AliasPath, Field | ||
from pydantic_settings import SettingsConfigDict | ||
|
||
from prefect.settings.base import PrefectBaseSettings | ||
|
||
|
||
class ServerFlowRunGraphSettings(PrefectBaseSettings): | ||
""" | ||
Settings for controlling behavior of the flow run graph | ||
""" | ||
|
||
model_config = SettingsConfigDict( | ||
env_prefix="PREFECT_SERVER_FLOW_RUN_GRAPH_", env_file=".env", extra="ignore" | ||
) | ||
|
||
max_nodes: int = Field( | ||
default=10000, | ||
description="The maximum size of a flow run graph on the v2 API", | ||
validation_alias=AliasChoices( | ||
AliasPath("max_nodes"), | ||
"prefect_server_flow_run_graph_max_nodes", | ||
"prefect_api_max_flow_run_graph_nodes", | ||
), | ||
) | ||
|
||
max_artifacts: int = Field( | ||
default=10000, | ||
description="The maximum number of artifacts to show on a flow run graph on the v2 API", | ||
validation_alias=AliasChoices( | ||
AliasPath("max_artifacts"), | ||
"prefect_server_flow_run_graph_max_artifacts", | ||
"prefect_api_max_flow_run_graph_artifacts", | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters