Commit 283439c9 authored by Iustin Pop's avatar Iustin Pop
Browse files

Implement selective job query

This patch implements query-ing of only selected jobs instead of all.

Reviewed-by: ultrotter
parent a14a17fc
......@@ -101,8 +101,12 @@ class QueueManager:
"""
result = []
self.lock.acquire()
if names:
values = [self.job_queue[j_id] for j_id in names]
else:
values = self.job_queue.itervalues()
try:
for jobj in self.job_queue.itervalues():
for jobj in values:
row = []
jdata = jobj.data
for fname in fields:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment