class_docstr: Kubeflow V2 pipeline runner (currently for managed pipelines).
  
  Builds a pipeline job spec in json format based on TFX pipeline DSL object.
class_docstr_tok: ["Kubeflow","V2","pipeline","runner","(","currently","for","managed","pipelines",")",".","Builds","a","pipeline","job","spec","in","json","format","based","on","TFX","pipeline","DSL","object","."]
docstr: Set exit handler components for the Kubeflow V2(Vertex AI) dag runner.
  
  This feature is currently experimental without backward compatibility
  gaurantee.
  
  Args:
    exit_handler: exit handler component.
docstr_tok: ["Set","exit","handler","components","for","the","Kubeflow","V2","(","Vertex","AI",")","dag","runner",".","This","feature","is","currently","experimental","without","backward","compatibility","gaurantee",".","Args",":","exit_handler",":","exit","handler","component","."]
code: def set_exit_handler(self, exit_handler: base_node.BaseNode):
      """Set exit handler components for the Kubeflow V2(Vertex AI) dag runner.
  
      This feature is currently experimental without backward compatibility
      gaurantee.
  
      Args:
        exit_handler: exit handler component.
      """
      if not exit_handler:
          logging.error("Setting empty exit handler is not allowed.")
          return
      self._exit_handler = exit_handler
  
imports: import datetime
  import json
  import os
  from typing import Any, Dict, List, Optional, Union, MutableMapping
  from absl import logging
  from kfp.pipeline_spec import pipeline_spec_pb2
  from tfx import version
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import base_node
  from tfx.dsl.io import fileio
  from tfx.orchestration import pipeline
  from tfx.orchestration import tfx_runner
  from tfx.orchestration.config import pipeline_config
  from tfx.orchestration.kubeflow.v2 import pipeline_builder
  from tfx.utils import telemetry_utils
  from tfx.utils import version_utils
  from google.protobuf import json_format
label_desc: Use image node_id 2 for calling the KubeflowV2DagRunner obj's underlying member method code with example usage: obj.set_exit_handler(exit_handler) without return types