Bases: PrefectBaseSettings
Settings for controlling ephemeral server behavior
Source code in src/prefect/settings/models/server/ephemeral.py
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 | class ServerEphemeralSettings(PrefectBaseSettings):
"""
Settings for controlling ephemeral server behavior
"""
model_config = _build_settings_config(("server", "ephemeral"))
enabled: bool = Field(
default=False,
description="""
Controls whether or not a subprocess server can be started when no API URL is provided.
""",
validation_alias=AliasChoices(
AliasPath("enabled"),
"prefect_server_ephemeral_enabled",
"prefect_server_allow_ephemeral_mode",
),
)
startup_timeout_seconds: int = Field(
default=20,
description="""
The number of seconds to wait for the server to start when ephemeral mode is enabled.
Defaults to `10`.
""",
)
|