Skip to content

Commit

Permalink
Merge pull request #5547 from nilsvu/py_schedule
Browse files Browse the repository at this point in the history
Minor improvements to Schedule.py
  • Loading branch information
knelli2 authored Oct 9, 2023
2 parents bd2aaf5 + 07c7a13 commit e8b9ac7
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 155 deletions.
8 changes: 5 additions & 3 deletions support/Python/Resubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@


def resubmit(
segments_dir: Path, context_file_name: str = "SubmitContext.yaml", **kwargs
segments_dir: Path,
context_file_name: str = "SchedulerContext.yaml",
**kwargs,
) -> Optional[subprocess.CompletedProcess]:
"""Create the next segment in the SEGMENTS_DIR and schedule it
Expand All @@ -23,7 +25,7 @@ def resubmit(
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: "SubmitContext.yaml")
'spectre.support.schedule'. (Default: "SchedulerContext.yaml")
Returns: The 'subprocess.CompletedProcess' representing the process
that scheduled the run. Returns 'None' if no run was scheduled.
Expand Down Expand Up @@ -94,7 +96,7 @@ def resubmit(
)
@click.option(
"--context-file-name",
default="SubmitContext.yaml",
default="SchedulerContext.yaml",
show_default=True,
help="Name of the context file that supports resubmissions.",
)
Expand Down
Loading

0 comments on commit e8b9ac7

Please sign in to comment.