Incorrect parsing of "condor_q -global" when there are no jobs
Opened this issue · 0 comments
QLeB commented
Hi,
The condor_q -global
request returns "All queues are empty" when there are no jobs.
Consequently pyglidein don't parse the output correctly:
pyglidein_server -u myuser --debug -n
2021-03-15 15:54:20,763 DEBUG asyncio : Using selector: EpollSelector
2021-03-15 15:54:25,772 INFO server : condor_q
condor_q -global -autoformat:, RequestCPUs RequestMemory RequestDisk RequestGPUs -format "%s" Requirements -constraint "JobStatus =?= 1" myuser
2021-03-15 15:54:25,812 DEBUG server : All queues are empty
2021-03-15 15:54:25,812 INFO server : error parsing line
Traceback (most recent call last):
File "/home/myuser/python3_env/lib/python3.6/site-packages/pyglidein-1.1.10.dev83+g75eacbd-py3.6.egg/pyglidein/server.py", line 272, in condor_q
cpus, memory, disk, gpus, reqs = line.split(', ',4)
ValueError: not enough values to unpack (expected 5, got 1)
2021-03-15 15:54:25,814 INFO server : state is updated to []