Skip to content

prefect.settings.models.experiments

ExperimentsSettings

Bases: PrefectBaseSettings

Settings for configuring experimental features

Source code in src/prefect/settings/models/experiments.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class ExperimentsSettings(PrefectBaseSettings):
    """
    Settings for configuring experimental features
    """

    model_config = _build_settings_config(("experiments",))

    warn: bool = Field(
        default=True,
        description="If `True`, warn on usage of experimental features.",
        validation_alias=AliasChoices(
            AliasPath("warn"), "prefect_experiments_warn", "prefect_experimental_warn"
        ),
    )

    worker_logging_to_api_enabled: bool = Field(
        default=False,
        description="Enables the logging of worker logs to Prefect Cloud.",
    )