phenotypic.sdk_.machine_state_restart_targets#

phenotypic.sdk_.machine_state_restart_targets(output_dir: Path) → list[Path][source]#

Every existing path clear_machine_state() would remove, in order.

The single producer of “what does --restart delete”. Read by clear_machine_state() itself, by the --dry-run preview, and by the CLI’s refusal of a --pipeline/--metadata/--image-manifest that a restart would delete before the run reads it. Performs no write.

Parameters:

output_dir (Path) – The run’s output directory.

Returns:

each non-preserved child of .phenotypic/, then any pre-migration root-level machine-state.

Return type:

Existing paths only