Repository navigation
docs: per-fit status record and Slurm time-limit signals (hpc-campaign phase 1) - #179
Merged
Merged
Conversation
…n phase 1) - config/general.yaml: hpc.status (true) and hpc.status_interval_s (60), comments as in the library. - cookbooks/search.py: new Status Record, Batch Job Time Limits and Turning It Off sections (files beside the output folder, states, failure record, Slurm SIGUSR1 / SIGTERM, how to switch off). - Regenerated notebooks/cookbooks/search.ipynb, llms-full.txt and workspace_index.json. Refs PyAutoLabs/PyAutoFit#1735 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Docs for hpc-campaign phase 1 (PyAutoLabs/PyAutoFit#1735): the per-fit status record.
config/general.yaml:hpc.status: trueandhpc.status_interval_s: 60, with the library's commentsscripts/cookbooks/search.py: three new sections after Parallelization — Status Record (the.status.json/.status.jsonl/.traceback.txtfiles beside the output folder, and what each state means), Batch Job Time Limits (#SBATCH --signal=B:USR1@300, start Python withexecso the fit receives the signal, what SIGUSR1 / SIGTERM do, resubmitting resumes), Turning It Offnotebooks/cookbooks/search.ipynb,llms-full.txt,workspace_index.jsonMerge after PyAutoLabs/PyAutoFit#1738 is released: the config keys and files only exist from that release.
Note: the
exec python ...advice follows from how Slurm deliversB:signals (to the batch shell only); it has not yet been tried on a real job with this code.Test Plan
PYAUTO_TEST_MODE=1 python scripts/cookbooks/search.pyexits 0pyauto-heart smoke autofit autolens_teston the phase 1 worktree (PyAutoFit + PyAutoNerves + autofit_workspace branches together): 47 passed, 0 failed🤖 Generated with Claude Code