runtraj.execution.inputs.hash_inputs#

runtraj.execution.inputs.hash_inputs(directory)[source]#

Return a content hash of a project folder’s config.yaml and releases.csv.

runtraj submit hashes the inputs when it makes a Kubernetes Job and gives the hash to each pod, which hashes what it copied and refuses to run when the two differ: a releases.csv changed after submit would split the releases differently among the Job’s tasks. The content is hashed, not a time or an etag, so copying the same files again is no change. tables/ is not hashed: it does not decide the split.

Raises:

FileNotFoundError – If directory has no config.yaml or releases.csv.

Return type:

str

Parameters:

directory (str | Path)