Skip to main content

Module cache

Module cache 

Source
Expand description

Task-level caching glue between the executor, cuenv_cas, and cuenv_vcs.

This module is responsible for:

  1. Building the cuenv_cas::Action envelope for a task: a deterministic summary of everything that affects the task’s outputs.
  2. Querying the cuenv_cas::ActionCache for a previous result.
  3. Materializing cached outputs back into the workspace on a hit.
  4. Persisting outputs and metadata after a successful execution on a miss.

Structs§

BuildActionInput
Inputs to build_action.
RecordInput
Inputs to record grouped to keep call sites self-documenting.
TaskCacheConfig
Bundle of caching infrastructure used by the task executor.

Functions§

build_action
Build the Action envelope for a task and compute its digest.
effective_policy
Returns the effective task cache policy.
lookup
Query the action cache for a previous result.
materialize_hit
Materialize a cache hit’s outputs into workdir.
record
Persist a successful execution to the cache.