Chapter 1. Managing data science pipelines


1.1. Configuring a pipeline server

Before you can successfully create a pipeline in OpenShift AI, you must configure a pipeline server. This task includes configuring where your pipeline artifacts and data are stored.

Note

You are not required to specify any storage directories when configuring a connection for your pipeline server. When you import a pipeline, the /pipelines folder is created in the root folder of the bucket, containing a YAML file for the pipeline. If you upload a new version of the same pipeline, a new YAML file with a different ID is added to the /pipelines folder.

When you run a pipeline, the artifacts are stored in the /pipeline-name folder in the root folder of the bucket.

Important

If you use an external MySQL database and upgrade to OpenShift AI 2.9 or later, the database is migrated to data science pipelines 2.0 format, making it incompatible with earlier versions of OpenShift AI.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have created a data science project that you can add a pipeline server to.
  • You have an existing S3-compatible object storage bucket and you have configured write access to your S3 bucket on your storage account.
  • If you are configuring a pipeline server for production pipeline workloads, you have an existing external MySQL or MariaDB database.
  • If you are configuring a pipeline server with an external MySQL database, your database must use at least MySQL version 5.x. However, Red Hat recommends that you use MySQL version 8.x.

    Note

    The mysql_native_password authentication plugin is required for the ML Metadata component to successfully connect to your database. mysql_native_password is disabled by default in MySQL 8.4 and later. If your database uses MySQL 8.4 or later, you must update your MySQL deployment to enable the mysql_native_password plugin.

    For more information about enabling the mysql_native_password plugin, see Native Pluggable Authentication in the MySQL documentation.

  • If you are configuring a pipeline server with a MariaDB database, your database must use MariaDB version 10.3 or later. However, Red Hat recommends that you use at least MariaDB version 10.5.

Procedure

  1. From the OpenShift AI dashboard, click Data science projects.

    The Data science projects page opens.

  2. Click the name of the project that you want to configure a pipeline server for.

    A project details page opens.

  3. Click the Pipelines tab.
  4. Click Configure pipeline server.

    The Configure pipeline server dialog appears.

  5. In the Object storage connection section, provide values for the mandatory fields:

    1. In the Access key field, enter the access key ID for the S3-compatible object storage provider.
    2. In the Secret key field, enter the secret access key for the S3-compatible object storage account that you specified.
    3. In the Endpoint field, enter the endpoint of your S3-compatible object storage bucket.
    4. In the Region field, enter the default region of your S3-compatible object storage account.
    5. In the Bucket field, enter the name of your S3-compatible object storage bucket.

      Important

      If you specify incorrect connection settings, you cannot update these settings on the same pipeline server. Therefore, you must delete the pipeline server and configure another one.

      If you want to use an existing artifact that was not generated by a task in a pipeline, you can use the kfp.dsl.importer component to import the artifact from its URI. You can only import these artifacts to the S3-compatible object storage bucket that you define in the Bucket field in your pipeline server configuration. For more information about the kfp.dsl.importer component, see Special Case: Importer Components.

  6. In the Database section, click Show advanced database options to specify the database to store your pipeline data and select one of the following sets of actions:

    • Select Use default database stored on your cluster to deploy a MariaDB database in your project.

      Important

      The Use default database stored on your cluster option is intended for development and testing purposes only. For production pipeline workloads, select the Connect to external MySQL database option to use an external MySQL or MariaDB database.

    • Select Connect to external MySQL database to add a new connection to an external MySQL or MariaDB database that your pipeline server can access.

      1. In the Host field, enter the database’s hostname.
      2. In the Port field, enter the database’s port.
      3. In the Username field, enter the default user name that is connected to the database.
      4. In the Password field, enter the password for the default user account.
      5. In the Database field, enter the database name.
  7. Click Configure pipeline server.

Verification

On the Pipelines tab for the project:

  • The Import pipeline button is available.
  • When you click the action menu () and then click View pipeline server configuration, the pipeline server details are displayed.

To configure a pipeline server with an external Amazon Relational Database Service (RDS) database, you must configure OpenShift AI to trust the certificates issued by its certificate authorities (CA).

Important

If you are configuring a pipeline server for production pipeline workloads, Red Hat recommends that you use an external MySQL or MariaDB database.

Prerequisites

  • You have cluster administrator privileges for your OpenShift cluster.
  • You have logged in to Red Hat OpenShift AI.
  • You have created a data science project that you can add a pipeline server to.
  • You have an existing S3-compatible object storage bucket, and you have configured your storage account with write access to your S3 bucket.

Procedure

  1. Before configuring your pipeline server, from Amazon RDS: Certificate bundles by AWS Region, download the PEM certificate bundle for the region that the database was created in.

    For example, if the database was created in the us-east-1 region, download us-east-1-bundle.pem.

  2. In a terminal window, log in to the OpenShift cluster where OpenShift AI is deployed.

    oc login api.<cluster_name>.<cluster_domain>:6443 --web
  3. Run the following command to fetch the current OpenShift AI trusted CA configuration and store it in a new file:

    oc get dscinitializations.dscinitialization.opendatahub.io default-dsci -o json | jq '.spec.trustedCABundle.customCABundle' > /tmp/my-custom-ca-bundles.crt
  4. Run the following command to append the PEM certificate bundle that you downloaded to the new custom CA configuration file:

    cat us-east-1-bundle.pem >> /tmp/my-custom-ca-bundles.crt
  5. Run the following command to update the OpenShift AI trusted CA configuration to trust certificates issued by the CAs included in the new custom CA configuration file:

    oc patch dscinitialization default-dsci --type='json' -p='[{"op":"replace","path":"/spec/trustedCABundle/customCABundle","value":"'"$(awk '{printf "%s\\n", $0}' /tmp/my-custom-ca-bundles.crt)"'"}]'
  6. Configure a pipeline server, as described in Configuring a pipeline server.

Verification

  • The pipeline server starts successfully.
  • You can import and run data science pipelines.

1.2. Defining a pipeline

The Kubeflow Pipelines SDK enables you to define end-to-end machine learning and data pipelines. Use the latest Kubeflow Pipelines 2.0 SDK to build your data science pipeline in Python code. After you have built your pipeline, use the SDK to compile it into an Intermediate Representation (IR) YAML file. After defining the pipeline, you can import the YAML file to the OpenShift AI dashboard to enable you to configure its execution settings.

Important

If you are using OpenShift AI on a cluster running in FIPS mode, any custom container images for data science pipelines must be based on UBI 9 or RHEL 9. This ensures compatibility with FIPS-approved pipeline components and prevents errors related to mismatched OpenSSL or GNU C Library (glibc) versions.

You can also use the Elyra JupyterLab extension to create and run data science pipelines within JupyterLab. For more information about creating pipelines in JupyterLab, see Working with pipelines in JupyterLab. For more information about the Elyra JupyterLab extension, see Elyra Documentation.

You can define data science pipelines and pipeline versions by using the Kubernetes API, which stores them as custom resources in the cluster instead of the internal database. This approach makes it easier to use OpenShift GitOps (Argo CD) or similar tools to manage pipelines and pipeline versions, while still allowing you to manage them through the OpenShift AI user interface (UI), API, and the Kubeflow Pipelines (kfp) Software Development Kit (SDK).

Important

Defining pipeline versions by using the Kubernetes API is currently available in Red Hat OpenShift AI 2.23 as a Technology Preview feature. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

Prerequisites

  • You have previously created a data science project that is available and has a pipeline server (a DataSciencePipelinesApplication custom resource).
  • You have installed the OpenShift command-line interface (CLI).

Procedure

  1. In a terminal window, run the following command to log in to the OpenShift CLI:

    $ oc login -u <user_name>

    When prompted, enter the OpenShift server URL, connection type, and your password.

  2. To configure the pipeline server to use Kubernetes API storage instead of the default database option, set the spec.apiServer.pipelineStore field to kubernetes in your project’s DataSciencePipelinesApplication (DSPA) custom resource.

    In the following command, replace <dspa_name> with the name of your DSPA custom resource, and replace <namespace> with the name of your project:

    $ oc patch dspa <dspa_name> -n <namespace> \
      --type=merge \
      -p {"spec": {"apiServer": {"pipelineStore": "kubernetes"}}}
    Warning

    After changing to Kubernetes API storage, existing pipelines stored in the internal database are no longer accessible through the OpenShift AI UI or REST API. To restore access to those pipelines, change the spec.apiServer.pipelineStore field back to database.

  3. Define a Pipeline custom resource in a YAML file with the following contents:

    Example pipeline definition

    apiVersion: pipelines.kubeflow.org/v2beta1
    kind: Pipeline
    metadata:
      name: <pipeline_name> 
    1
    
      namespace: <namespace> 
    2
    
    spec:
      displayName: <pipeline_display_name> 
    3

    1
    Replace this value with the name of your pipeline.
    2
    Replace this value with name of your project.
    3
    Replace this value with the display name of your pipeline.
  4. Apply the pipeline definition to create the Pipeline custom resource in your cluster.

    In the following command, replace <pipeline_yaml_file> with the name of your YAML file:

    Example command

    $ oc apply -f <pipeline_yaml_file>.yaml

  5. Define a PipelineVersion custom resource in a YAML file with the following contents:

    Example pipeline version definition

    apiVersion: pipelines.kubeflow.org/v2beta1
    kind: PipelineVersion
    metadata:
      name: <pipeline_version_name> 
    1
    
      namespace: <namespace> 
    2
    
    spec:
      pipelineName: <pipeline_name> 
    3
    
      displayName: <pipeline_version_display_name> 
    4
    
      description: This is the first version of the pipeline.
      pipelineSpec: 
    5
    
        # ... generated by kfp compile ...

    1
    Replace this value with the name of your pipeline version.
    2
    Replace this value with name of your project.
    3
    Replace this value with the name of your pipeline. This value must match the metadata.name value in the Pipeline custom resource.
    4
    Replace this value with the display name of your pipeline version.
    5
    Replace the spec.pipelineSpec field with the YAML representation of your pipeline after compilation with the kfp SDK.
  6. Apply the pipeline version definition to create the PipelineVersion custom resource in your cluster.

    In the following command, replace <pipeline_version_yaml_file> with the name of your YAML file:

    Example command

    $ oc apply -f <pipeline_version_yaml_file>.yaml

    After creating the pipeline version, the system automatically applies the following labels to the pipeline version for easier filtering:

    Example automatic labels

    pipelines.kubeflow.org/pipeline-id: <metadata.uid of the pipeline>
    pipelines.kubeflow.org/pipeline: <pipeline name>

Verification

  1. Check that the Pipeline custom resource was successfully created:

    $ oc get pipeline <pipeline_name> -n <namespace>
  2. Check that the PipelineVersion custom resource was successfully created:

    $ oc get pipelineversion <pipeline_version_name> -n <namespace>

1.3. Importing a data science pipeline

To help you begin working with data science pipelines in OpenShift AI, you can import a YAML file containing your pipeline’s code to an active pipeline server, or you can import the YAML file from a URL. This file contains a Kubeflow pipeline compiled by using the Kubeflow compiler. After you have imported the pipeline to a pipeline server, you can execute the pipeline by creating a pipeline run.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that is available and contains a configured pipeline server.
  • You have compiled your pipeline with the Kubeflow compiler and you have access to the resulting YAML file.
  • If you are uploading your pipeline from a URL, the URL is publicly accessible.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.
  2. On the Pipelines page, from the Project drop-down list, select the project that you want to import a pipeline to.
  3. Click Import pipeline.
  4. In the Import pipeline dialog, enter the details for the pipeline that you want to import.

    1. In the Pipeline name field, enter a name for the pipeline that you want to import.
    2. In the Pipeline description field, enter a description for the pipeline that want to import.
    3. Select where you want to import your pipeline from by performing one of the following actions:

      • Select Upload a file to upload your pipeline from your local machine’s file system. Import your pipeline by clicking Upload, or by dragging and dropping a file.
      • Select Import by url to upload your pipeline from a URL, and then enter the URL into the text box.
    4. Click Import pipeline.

Verification

  • The pipeline that you imported appears on the Pipelines page and on the Pipelines tab on the project details page.

1.4. Deleting a data science pipeline

If you no longer require access to your data science pipeline on the dashboard, you can delete it so that it does not appear on the Data science pipelines page.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • There are active pipelines available on the Pipelines page.
  • The pipeline that you want to delete does not contain any pipeline versions.
  • The pipeline that you want to delete does not contain any pipeline versions. For more information, see Deleting a pipeline version.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.
  2. On the Pipelines page, from the Project drop-down list, select the project that contains the pipeline that you want to delete.
  3. Click the action menu () beside the pipeline that you want to delete, and then click Delete pipeline.
  4. In the Delete pipeline dialog, enter the pipeline name in the text field to confirm that you intend to delete it.
  5. Click Delete pipeline.

Verification

  • The data science pipeline that you deleted no longer appears on the Pipelines page.

1.5. Deleting a pipeline server

After you have finished running your data science pipelines, you can delete the pipeline server. Deleting a pipeline server automatically deletes all of its associated pipelines, pipeline versions, and runs. If your pipeline data is stored in a database, the database is also deleted along with its meta-data. In addition, after deleting a pipeline server, you cannot create new pipelines or pipeline runs until you create another pipeline server.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that is available and contains a pipeline server.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.
  2. On the Pipelines page, from the Project drop-down list, select the project that contains the pipeline server that you want to delete.
  3. From the Pipeline server actions list, select Delete pipeline server.
  4. In the Delete pipeline server dialog, enter the name of the pipeline server in the text field to confirm that you intend to delete it.
  5. Click Delete.

Verification

  • Pipelines previously assigned to the deleted pipeline server no longer appear on the Pipelines page for the relevant data science project.
  • Pipeline runs previously assigned to the deleted pipeline server no longer appear on the Runs page for the relevant data science project.

1.6. Viewing the details of a pipeline server

You can view the details of pipeline servers configured in OpenShift AI, such as the pipeline’s connection details and where its data is stored.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that contains an active and available pipeline server.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.
  2. On the Pipelines page, from the Project drop-down list, select the project that contains the pipeline server that you want to view.
  3. From the Pipeline server actions list, select View pipeline server configuration.

Verification

  • You can view the pipeline server details in the View pipeline server dialog.

1.7. Viewing existing pipelines

You can view the details of pipelines that you have imported to Red Hat OpenShift AI, such as the pipeline’s last run, when it was created, the pipeline’s executed runs, and details of any associated pipeline versions.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that is available and contains a pipeline server.
  • You have imported a pipeline to an active pipeline server.
  • Existing pipelines are available.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.
  2. On the Pipelines page, from the Project drop-down list, select the project that contains the pipelines that you want to view.
  3. Optional: Click Expand ( rhoai expand icon ) on the row of a pipeline to view its pipeline versions.

Verification

  • A list of data science pipelines appears on the Pipelines page.

1.8. Overview of pipeline versions

You can manage incremental changes to pipelines in OpenShift AI by using versioning. This allows you to develop and deploy pipelines iteratively, preserving a record of your changes. You can track and manage your changes on the OpenShift AI dashboard, allowing you to schedule and execute runs against all available versions of your pipeline.

1.9. Uploading a pipeline version

You can upload a YAML file to an active pipeline server that contains the latest version of your pipeline, or you can upload the YAML file from a URL. The YAML file must consist of a Kubeflow pipeline compiled by using the Kubeflow compiler. After you upload a pipeline version to a pipeline server, you can execute it by creating a pipeline run.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that is available and contains a configured pipeline server.
  • You have a pipeline version available and ready to upload.
  • If you are uploading your pipeline version from a URL, the URL is publicly accessible.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.
  2. On the Pipelines page, from the Project drop-down list, select the project that you want to upload a pipeline version to.
  3. Click the Import pipeline drop-down list, and then select Upload new version.
  4. In the Upload new version dialog, enter the details for the pipeline version that you are uploading.

    1. From the Pipeline list, select the pipeline that you want to upload your pipeline version to.
    2. In the Pipeline version name field, confirm the name for the pipeline version, and change it if necessary.
    3. In the Pipeline version description field, enter a description for the pipeline version.
    4. Select where you want to upload your pipeline version from by performing one of the following actions:

      • Select Upload a file to upload your pipeline version from your local machine’s file system. Import your pipeline version by clicking Upload, or by dragging and dropping a file.
      • Select Import by url to upload your pipeline version from a URL, and then enter the URL into the text box.
    5. Click Upload.

Verification

  • The pipeline version that you uploaded is displayed on the Pipelines page. Click Expand ( rhoai expand icon ) on the row containing the pipeline to view its versions.
  • The Version column on the row containing the pipeline version that you uploaded on the Pipelines page increments by one.

1.10. Deleting a pipeline version

You can delete specific versions of a pipeline when you no longer require them. Deleting a default pipeline version automatically changes the default pipeline version to the next most recent version. If no pipeline versions exist, the pipeline persists without a default version.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that is available and contains a pipeline server.
  • You have imported a pipeline to an active pipeline server.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.

    The Pipelines page opens.

  2. Delete the pipeline versions that you no longer require:

    • To delete a single pipeline version:

      1. From the Project list, select the project that contains a version of a pipeline that you want to delete.
      2. On the row containing the pipeline, click Expand ( rhoai expand icon ).
      3. Click the action menu () beside the project version that you want to delete, and then click Delete pipeline version.

        The Delete pipeline version dialog opens.

      4. Enter the name of the pipeline version in the text field to confirm that you intend to delete it.
      5. Click Delete.
    • To delete multiple pipeline versions:

      1. On the row containing each pipeline version that you want to delete, select the checkbox.
      2. Click the action menu (⋮) next to the Import pipeline drop-down list, and then select Delete from the list.

Verification

  • The pipeline version that you deleted no longer appears on the Pipelines page, or on the Pipelines tab for the data science project.

1.11. Viewing the details of a pipeline version

You can view the details of a pipeline version that you have uploaded to Red Hat OpenShift AI, such as its graph and YAML code.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that is available and contains a pipeline server.
  • You have a pipeline available on an active and available pipeline server.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.

    The Pipelines page opens.

  2. From the Project drop-down list, select the project that contains the pipeline versions that you want to view details for.
  3. Click the pipeline name to view further details of its most recent version. The pipeline version details page opens, displaying the Graph, Summary, and Pipeline spec tabs.

    Alternatively, click Expand ( rhoai expand icon ) on the row containing the pipeline that you want to view versions for, and then click the pipeline version that you want to view the details of. The pipeline version details page opens, displaying the Graph, Summary, and Pipeline spec tabs.

Verification

  • On the pipeline version details page, you can view the pipeline graph, summary details, and YAML code.

1.12. Downloading a data science pipeline version

To make further changes to a data science pipeline version that you previously uploaded to OpenShift AI, you can download pipeline version code from the user interface.

Prerequisites

  • You have logged in to Red Hat OpenShift AI.
  • You have previously created a data science project that is available and contains a configured pipeline server.
  • You have created and imported a pipeline to an active pipeline server that is available to download.

Procedure

  1. From the OpenShift AI dashboard, click Data science pipelines Pipelines.
  2. On the Pipelines page, from the Project drop-down list, select the project that contains the version that you want to download.
  3. Click Expand ( rhoai expand icon ) beside the pipeline that contains the version that you want to download.
  4. Click the pipeline version that you want to download.

    The pipeline version details page opens.

  5. Click the Pipeline spec tab, and then click the Download button ( rhoai download icon ) to download the YAML file that contains the pipeline version code to your local machine.

Verification

  • The pipeline version code downloads to your browser’s default directory for downloaded files.

1.13. Overview of data science pipelines caching

You can use caching within data science pipelines to optimize execution times and improve resource efficiency. Caching reduces redundant task execution by reusing results from previous runs with identical inputs.

Caching is particularly beneficial for iterative tasks, where intermediate steps might not need to be repeated. Understanding caching can help you design more efficient pipelines and save time in model development.

Caching operates by storing the outputs of successfully completed tasks and comparing the inputs of new tasks against previously cached ones. If a match is found, OpenShift AI reuses the cached results instead of re-executing the task, reducing computation time and resource usage.

1.13.1. Caching criteria

For caching to be effective, the following criteria determine if a task can use previously cached results:

  • Input data and parameters: If the input data and parameters for a task are unchanged from a previous run, cached results are eligible for reuse.
  • Task code and configuration: Changes to the task code or configurations invalidate the cache to ensure that modifications are always reflected.
  • Pipeline environment: Changes to the pipeline environment, such as dependency versions, also affect caching eligibility to maintain consistency.

Cached steps in pipelines are visually indicated in the user interface (UI):

  • Tasks that use cached results display a green icon, helping you quickly identify which steps were cached. The Status field in the side panel displays Cached for cached tasks.
  • The UI also includes information about when the task was previously executed, allowing for easy verification of cache usage.

To check the caching status of specific tasks, navigate to the pipeline details view in the UI. Cached and non-cached tasks are clearly indicated. Cached tasks do not display execution logs because they reuse previously generated outputs and are not re-executed.

Caching is enabled by default in OpenShift AI to improve performance. However, there are instances when disabling caching might be necessary for specific tasks, an entire pipeline, or all pipelines. For example, caching might not be beneficial for tasks that rely on frequently updated data or unique computational needs. In other cases, such as debugging, development, or when deterministic re-execution is required, you might want to disable caching for all pipelines.

Important

Disabling caching at the pipeline or pipeline server level causes all tasks to re-run, potentially increasing compute time and resource usage.

You can control caching for data science pipelines in the following ways:

  • Individual task: Data scientists can disable caching for specific steps in a pipeline.
  • Pipeline (submit time): Data scientists can disable caching when submitting a pipeline run.
  • Pipeline (compile time): Data scientists can disable caching when compiling a pipeline.
  • All pipelines (pipeline server): Cluster administrators can disable caching for all pipelines in the pipeline server, which overrides all pipeline and task-level caching settings.

1.13.3.1. Disabling caching for individual tasks

To disable caching for a particular task, apply the set_caching_options method directly to the task in your pipeline code:

task_name.set_caching_options(False)

After applying this setting, OpenShift AI runs the task in future pipeline runs, ignoring any cached results.

You can re-enable caching for individual tasks by setting the set_caching_options parameter to True or by omitting set_caching_options.

This setting is ignored if caching is disabled in the pipeline server.

To disable caching for the entire pipeline during pipeline submission, set the enable_caching parameter to False in your pipeline code. This setting ensures that no steps are cached during pipeline execution. The enable_caching parameter is available only when using the kfp.client to submit pipelines or start pipeline runs, such as the run_pipeline method.

Example:

import kfp
client = kfp.Client()
client.run_pipeline(
    experiment_id=experiment.id,
    pipeline_id=pipeline.id,
    job_name="no-cache-run",
    params={},                # optional
    enable_caching=False,
)

This setting is ignored if caching is disabled during pipeline compilation or in the pipeline server.

To disable caching for the entire pipeline during compilation, set one of the following options in your local environment or workbench:

  • Environment variable:

    export KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT=true
  • CLI flag (when using kfp dsl compile):

    kfp dsl compile --disable-execution-caching-by-default

These settings are ignored if caching is disabled in the pipeline server.

Cluster administrators can disable caching for all pipelines in the pipeline server, which overrides all pipeline and task-level caching settings.

In the OpenShift console or CLI, set the cacheEnabled field to false in the DataSciencePipelinesApplication (DSPA) custom resource for the project.

Example:

apiVersion: datasciencepipelinesapplications.opendatahub.io/v1
kind: DataSciencePipelinesApplication
metadata:
  name: my-dspa
  namespace: my-namespace
spec:
  apiServer:
    cacheEnabled: false

After applying this setting, all pipeline and task-level caching settings are ignored.

To allow caching to be configured at the pipeline and task level, set the cacheEnabled field to true in the DSPA custom resource.

Note

Changing this setting updates the CACHEENABLED environment variable in the pipeline server deployment.

Verification

After configuring caching settings, you can verify its behavior by using one of the following methods:

  • Check the UI: Locate the green icons in the task list to identify cached steps.
  • Test task re-runs: Disable caching on specific tasks or the pipeline to confirm that steps re-execute as expected.
  • Validate inputs: Ensure the task inputs, parameters, and runtime settings are unchanged when caching is applied.
Note

You can also disable caching for a single node or for your entire pipeline in JupyterLab using Elyra. For more information about how to use this feature, see Disabling node caching in Elyra.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top