﻿# Kubeflow Pipelines caching overrides: inspect the submitted run, not only the task declaration

Diagnose unexpected KFP cache reuse by reviewing task-level options, compile defaults and run-submission overrides together with the intended side-effect contract.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-kubeflow-run-caching-override-task-setting/
Language: en

## The component was meant to execute again

A pipeline author disables caching for a component that reads a changing external evaluation set. A wrapper submits the pipeline with a global caching override. The observed run reuses prior output, surprising the author who reviewed only the task-level declaration.

Collect the effective configuration path before modifying component code. The compiled pipeline and the submitted run can carry additional policy choices. A result marked as reused is evidence about the actual run, not necessarily a faithful reflection of a single line in the current source file.

## Task-level caching is only one layer

The [KFP caching guide](https://www.kubeflow.org/docs/components/pipelines/user-guides/core-functions/caching/) documents per-task caching options and run-wide submission overrides. It also describes compile-time defaults. These layers make it important to inspect the exact launch operation used by a scheduler, notebook or automation wrapper.

State whether the goal is to reuse deterministic computation or force a fresh observation. The latter requires an effective execution policy, not merely a comment that labels the component as fresh in the source.

## Submission parameters can change the outcome

The [Client API](https://github.com/kubeflow/pipelines/blob/master/sdk/python/kfp/client/client.py) exposes run-creation options. Review the wrapper's actual arguments and the pipeline package it submits. A stale compiled package is another distinct possibility: the reviewed source may not be the source from which that package was generated.

Preserve the package identity with the run. [Artifact signature verification](/journal/artifact-signature-verification/) illustrates how identity evidence differs from assuming that a familiar filename contains the latest intended definition.

## Reuse changes whether component code runs

The [DSL reference](https://kubeflow-pipelines.readthedocs.io/en/release-2.18/sdk/source/dsl.html) documents task configuration methods. A cache hit returns previous outputs rather than executing the component body. Any incidental external observation or side effect inside that body therefore needs a deliberate policy.

Do not use output presence as proof that a live external source was contacted on this run. A previous result may still be useful, but its observation time and population belong in the explanation of the metric.

## Verify policy and data identity separately

Submit a controlled pipeline through the same wrapper and inspect whether the target component executes or reuses output under each intended setting. Use an observable harmless operation so the test can distinguish actual execution from returned data.

Then verify the evaluation-set identity through [dataset lineage](/journal/data-guide-dvc-data-pipeline-lock/). Disabling cache establishes fresh execution, while explicit input evidence establishes what that execution read. Both are needed when the experiment claims to evaluate revised data.
