In this article
Expiration limits when a successful step remains a cache candidate; it does not by itself define payload retention or immutable external inputs.
A result should be recomputed but still auditable
An evaluation team wants recent data summaries to refresh periodically while preserving the earlier reports for comparison. Deleting every previous artifact would destroy useful evidence. Keeping every successful step eligible for reuse indefinitely would express a different freshness policy than the team intends.
Separate two questions: may a future step reuse this result, and should the stored result remain available for historical inspection? They are independent requirements even when a user interface presents the step and its output together.
Expiration controls cache candidacy
The ZenML caching guide documents expires_after and manual cache_expires_at updates for successful step runs. These settings govern the window in which a matching step can act as a cache candidate. They should not be described as commands to delete stored output bytes.
Choose the time policy according to the computational purpose. A periodically refreshed summary and a deterministic calculation over an immutable dataset may need different reuse rules. An arbitrary short window can waste computation without making the underlying evidence better.
Artifact lifecycle is managed separately
The artifact guide describes artifact storage, lineage and management. Historical output availability should be evaluated through those artifact responsibilities rather than inferred from whether a step’s cache candidacy expired.
For the report comparison, preserve the actual input population and model identity alongside each result. Dataset removal lineage helps describe intentional disappearance when retention later removes inputs. Expiring reuse is not a substitute for explaining that historical limitation.
Re-execution does not freeze external data
The execution guide describes step execution and output materialization. When an expired result is no longer reused, fresh code execution may observe a changed external API or database. That can be desirable for a current summary, but it is not a replay of the earlier population automatically.
Record a resolved revision or observation time according to the data source’s actual contract. Distinguish a fresh measurement from a controlled comparison in which inputs must remain fixed across candidate models.
Verify both promised capabilities
Test that a matching step reuses a result while it is eligible and executes again after the intended expiry. Separately load the earlier output and confirm that historical inspection still works under the retention policy.
Use dataset evidence documentation to explain what each summary measured. The two checks establish different properties: freshness of future computation and availability of past evidence. Neither should be inferred merely from the other’s success.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.