schrodinger.seam.testing.stu_tests.inplace_resume module¶
Test resuming a failed pipeline in place via seamcli.py resume --inplace.
A two-stage pipeline fails at stage 2 on its first run, leaving a
checkpoint in the seam directory. Resuming with --inplace reuses
that same directory instead of copying it to seam_resume. The resume
should:
Complete successfully, producing the pipeline output.
Not create a
seam_resumecopy (the whole point of--inplace).Archive the failed stage’s log/worker/metrics subdirectories into
seam/debug/failed_attempts/attempt_<N>so new artifacts do not mix with the old ones, while leaving the successfully completed stage’s artifacts in place.
Usage:
$SCHRODINGER/run python3 -m schrodinger.seam.testing.stu_tests.inplace_resume
- class schrodinger.seam.testing.stu_tests.inplace_resume.MaybeFail(label: Optional[str] = None)¶
Bases:
_LocalOnlyPTransform,MaybeFailDouble each element, but fail first if the sentinel file exists.
- schrodinger.seam.testing.stu_tests.inplace_resume.main()¶