Skip to content

Qstat parsing will error on jobs that use characters that need to be escaped. #159

Description

@grabear

When parsing jobs I came across something interesting. If someone names a job using a coma, then there will be an index error at

value = ''.join(value).split(',')

After doing some experimental analysis to debug, I found that the job name was Mg4O4c,try4. Either PBS, linux, or python is adding an escape character (maybe twice). So the variable list shows PBS_O_WORKDIR=/ddn/.../mg404c\\,try4.

When just using the qstat -f <job_id> -F json command the output looks fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions