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

Incorrect parsing of "condor_q -global" when there are no jobs #177

Open
QLeB opened this issue Mar 15, 2021 · 0 comments
Open

Incorrect parsing of "condor_q -global" when there are no jobs #177

QLeB opened this issue Mar 15, 2021 · 0 comments

Comments

@QLeB
Copy link

QLeB commented Mar 15, 2021

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 []
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

1 participant