gigl.orchestration.kubeflow.kfp_pipeline#
Attributes#
Classes#
What the pipeline runs when it exits, whatever the outcome. |
Functions#
|
Generates a KFP pipeline definition for GiGL. |
Module Contents#
- class gigl.orchestration.kubeflow.kfp_pipeline.ExitTask[source]#
Bases:
str,enum.EnumWhat the pipeline runs when it exits, whatever the outcome.
A KFP pipeline has exactly one exit task, so this is an either/or choice made at compile time.
EMAIL: Send a Vertex AI notification email to
notification_emails. CLEANUP: Cancel the Vertex AI, Dataflow, and Dataproc jobs the run launched.Meant for CI, where nobody reads the email and orphaned jobs hold capacity.
Initialize self. See help(type(self)) for accurate signature.
- gigl.orchestration.kubeflow.kfp_pipeline.generate_pipeline(common_pipeline_component_configs, tag=None, exit_task=ExitTask.EMAIL)[source]#
Generates a KFP pipeline definition for GiGL. :param common_pipeline_component_configs: Shared configuration between components. :type common_pipeline_component_configs: CommonPipelineComponentConfigs :param tag: Optional tag, which is provided will be used to tag the pipeline description. :type tag: Optiona[str] :param exit_task: What runs when the pipeline exits. Defaults to the email notification.
With
ExitTask.CLEANUPthenotification_emailsparameter is accepted but unused.- Returns:
An @kfp.dsl.pipeline decorated function to generated a pipeline.
- Parameters:
common_pipeline_component_configs (gigl.common.types.resource_config.CommonPipelineComponentConfigs)
tag (Optional[str])
exit_task (ExitTask)