INNER CODE UNIT · Python

_do_halt

pegasus-isi/pegasus · packages/pegasus-python/src/Pegasus/cli/main.py:325

def _do_halt(argv: list) -> None:
    """Implement pegasus-halt: touch .halt files for each .dag in a submit dir."""
    run_dir = argv[0] if argv else None

    if run_dir is None and Path("braindump.yml").exists():
        run_dir = str(Path.cwd())

    if not run_dir:
        click.echo("Please specify a run directory", err=True)
        click.echo("Usage: pegasus halt <rundir>", err=True)
        sys.exit(1)

    run_path = Path(run_dir)
    if not run_path.exists():
        click.echo(f"{run_dir} does not exist!", err=True)
        sys.exit(1)
    if not (run_path / "braindump.yml").exists():
        click.echo(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…