Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
grabear opened this issue Feb 14, 2020 · 1 comment

Comments

@grabear
Copy link
Member

grabear commented Feb 14, 2020

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.

@sdhutchins
Copy link
Member

Status update? @grabear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants