Skip to content

job-info: return job state as number encourages hardcoding values in shell scripts #2635

@garlick

Description

@garlick

Problem: job-info.list returns job states as numerical values. This encourages people parsing the output in a bash script with jq to hard code the enum values.

It would be better IMHO to return the state names (strings) from RFC 21.

That might work out better in the python bindings too...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions