Find a launcher and component config to launch the component.
tfx.orchestration.config.config_utils.find_component_launch_info(
p_config: tfx.orchestration.config.pipeline_config.PipelineConfig
,
component: tfx.dsl.components.base.base_component.BaseComponent
) -> Tuple[Type[base_component_launcher.BaseComponentLauncher], Optional[
base_component_config.BaseComponentConfig]]
The default lookup logic goes through the supported_launcher_classes
in sequence for each config from the default_component_configs
. User can
override a single component setting by component_config_overrides
. The
method returns the first component config and launcher which together can
launch the executor_spec of the component.
Subclass may customize the logic by overriding the method.
Args |
p_config
|
the pipeline config.
|
component
|
the component to launch.
|
Returns |
The found tuple of component launcher class and the compatible component
config.
|
Raises |
RuntimeError
|
if no supported launcher is found.
|