Skip to content

Parse rare comma-delimited sets of slurm array ID ranges. #133

@ChrisMoth

Description

@ChrisMoth

The cluster-side slurm.py module performs subprocess.run() with a command line like:

$ squeue --array --json --user %s"

The "array IDs" for a given job are returned in the json - usually individually or as ranges with a '-'

A third option is to see comma-delimited array ranges: "4,8,12-15,27" as example.

These comma-delimited segments are now handled through iteration over the comma-delimited sub-ranges.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions