Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit e8484089 authored by Betoule Marc's avatar Betoule Marc
Browse files

Correct outstanding bug introduced in web during performance improvements:...

Correct outstanding bug introduced in web during performance improvements: interface failed to display segments without tasks
parent bf455f57
......@@ -188,7 +188,8 @@ class SqliteTracker(Tracker,threading.Thread):
self.conn.execute('create table segment_relations (father_id INTEGER NOT NULL, child_id INTEGER NOT NULL)')
self.conn.row_factory = sqlite3.Row
with self.conn:
## requests queue
self.requests = Queue.Queue(0)
......@@ -215,7 +216,7 @@ class SqliteTracker(Tracker,threading.Thread):
self.seg_id_cache[s] = seg_id
logger.debug("Segment %s instance (%s) already registered in db."%(s, curr_dir))
except TypeError:
logger.debug("Creating segment %s instance (%s)."%(s, curr_dir))
logger.debug("Creating segment %s instance (%s)."%(s, curr_dir))
c = self.conn.execute(
'insert into segments (seg, curr_dir, comment) values (?, ?, ?)'
,(s, curr_dir, docline))
......@@ -227,9 +228,6 @@ class SqliteTracker(Tracker,threading.Thread):
'insert into segment_relations (father_id, child_id) values (?, ?)'
,(self.seg_id_cache[p], seg_id))
def _asynchronous_request(self, sqlrequest, args):
""" Add an sql request to the queue
......@@ -328,7 +328,10 @@ class Web:
for s in l:
#with conn:
# e = conn.execute('select status, count(status) from tasks where seg_id=? group by status',(s[2],)).fetchall()
e = [tcounts[i] for i in index[s[2]]]
e = [tcounts[i] for i in index[s[2]]]
except IndexError:
e = []
ss = s[3]
if ss is None:
ss = ""
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