phenotypic.sdk_.new_part_path#

phenotypic.sdk_.new_part_path(final: Path) Path[source]#

Return a fresh, uuid-suffixed .part sibling of final.

The uuid – matching the attempt_id = uuid4().hex convention already used in _cli_staged_strategy.py (lines 148, 192, 225, 359) – is what keeps two concurrent writers from interleaving chunks into one directory. It is NOT what makes the promote itself benign; that is the retry loop in promote_store(). An un-suffixed .part would let two concurrent SLURM tasks interleave chunks into one directory and produce a store that validates. A PID is not enough: PIDs are reused.

Parameters:

final (Path)

Return type:

Path