Skip to content

silence scancel during sbatch #15

@brandonlind

Description

@brandonlind

myslurm.sbatch makes sure that jobs aren't submitted twice and will cancel all but one of the jobs if it finds multiple jobs with the same job name. During the cancelation process, Squeue.cancel calls Squeue._update_queue, and on line 751 uses tqdm.tqdm to iterate jobs to be cancelled, which then is shown visually as a progress bar for each job that is being cancelled.

During myslurm.sbatch, it would be nice if the visual progress bar for cancelling individual jobs could be silenced so that the only progress bar shown is the iteration across files passed to myslurm.sbatch. A solution probably involves using functools.partial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions