Module tasks

Module tasks 

Source
Expand description

Task result caching with content-addressed storage

Structs§

CacheEntry
A resolved cache entry
CacheKeyEnvelope
Cache key envelope for computing deterministic cache keys
OutputIndexEntry
Entry in the output file index
TaskLatestIndex
Index mapping task names to their latest cache keys (per project)
TaskLogs
Task execution logs
TaskResultMeta
Metadata about a cached task result

Functions§

compute_cache_key
Compute a deterministic cache key from the envelope
get_project_cache_keys
Retrieve all latest cache keys for a given project
key_to_path
Convert a cache key to its storage path
lookup
Look up a cache entry by key
lookup_latest
Look up the latest cache key for a task in a project
materialize_outputs
Materialize cached outputs to a destination directory
record_latest
Record the latest cache key for a task in a project
save_result
Save a task result to the cache
snapshot_workspace_tar_zst
Create a compressed tar archive of a workspace directory