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

Commit fd5fd135 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

rebuild from disk:

- segname with _ in it
- remove double dumps of IO
parent aa5fd7fa
......@@ -388,7 +388,7 @@ def rebuild_db_from_disk(pipedir, sqlfile=None):
#s = curr_dir.split("/")[-1]
#kk = s.split("_")[-1]
#s = s.replace ("_"+kk, "")
gr = re.search (r"/([a-zA-Z0-9]+)(_[a-zA-Z0-9])*_([a-zA-Z0-9]+)$", curr_dir).groups()[:-1] # remove segkey
gr = re.search (r"/([a-zA-Z0-9_]+)(_[a-zA-Z0-9])*_([a-zA-Z0-9]+)$", curr_dir).groups()[:-1] # remove segkey
s = gr[0]
for g in gr[1:]:
if g:
......@@ -458,7 +458,7 @@ def rebuild_db_from_disk(pipedir, sqlfile=None):
## insert values in db
task_id_cache[t] = meta['id']#t.split("_")[-2].split("/")[-1]
c = conn.execute('insert into tasks (task_id, seg_id, output, input, begun_on, ended_on, queued_on,status,str_input) values (?, ?, ?, ?, ?, ?, ?, ?, ?)',(task_id_cache[t], v, pickle.dumps(meta["output"]), pickle.dumps(meta["input"]), meta["begun_on"], meta["ended_on"], meta["queued_on"], meta["status"],t))
c = conn.execute('insert into tasks (task_id, seg_id, output, input, begun_on, ended_on, queued_on,status,str_input) values (?, ?, ?, ?, ?, ?, ?, ?, ?)',(task_id_cache[t], v, meta["output"], meta["input"], meta["begun_on"], meta["ended_on"], meta["queued_on"], meta["status"],t))
## 5---: task_relations from meta + task input
## need to restart the loop in order to use the right task_id
......
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