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.