The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
2.1.9
Config
Package: flyte.config
This the parent configuration object and holds all the underlying configuration object types. An instance of this object holds all the config necessary to
- Interactive session with Flyte backend
- Some parts are required for Serialization, for example Platform Config is not required
- Runtime of a task
Parameters
class Config(
platform: PlatformConfig,
task: TaskConfig,
image: ImageConfig,
local: LocalConfig,
source: pathlib.Path | None,
)| Parameter | Type | Description |
|---|---|---|
platform |
PlatformConfig |
|
task |
TaskConfig |
|
image |
ImageConfig |
|
local |
LocalConfig |
|
source |
pathlib.Path | None |
Methods
| Method | Description |
|---|---|
auto() |
Automatically constructs the Config Object. |
with_params() |
auto()
def auto(
config_file: typing.Union[str, pathlib.Path, ConfigFile, None],
) -> 'Config'Automatically constructs the Config Object. The order of precedence is as follows
- first try to find any env vars that match the config vars specified in the FLYTE_CONFIG format.
- If not found in environment then values ar read from the config file
- If not found in the file, then the default values are used.
| Parameter | Type | Description |
|---|---|---|
config_file |
typing.Union[str, pathlib.Path, ConfigFile, None] |
file path to read the config from, if not specified default locations are searched |
Returns: Config
with_params()
def with_params(
platform: PlatformConfig | None,
task: TaskConfig | None,
image: ImageConfig | None,
) -> 'Config'| Parameter | Type | Description |
|---|---|---|
platform |
PlatformConfig | None |
|
task |
TaskConfig | None |
|
image |
ImageConfig | None |