spectre.support.Resubmit¶
Functions
|
Create the next segment in the SEGMENTS_DIR and schedule it |
- spectre.support.Resubmit.resubmit(segments_dir: Path, context_file_name: str = 'SchedulerContext.yaml', **kwargs) CompletedProcess | None ¶
Create the next segment in the SEGMENTS_DIR and schedule it
- Parameters:
segments_dir – Path to the segments directory, or path to the last segment in the segments directory. The next segment will be created here.
context_file_name – Optional. Name of the file that stores the context for resubmissions in the ‘run_dir’. This file gets created by ‘spectre.support.schedule’. (Default: “SchedulerContext.yaml”)
- Returns: The ‘subprocess.CompletedProcess’ representing the process
that scheduled the run. Returns ‘None’ if no run was scheduled.