Commit 09290ce2 authored by Mikaël Salson's avatar Mikaël Salson

models/task.py: On success, remove result files that have been stored in DB

Fix #4388
parent 9ad3f80f
Pipeline #159896 passed with stages
in 9 minutes and 27 seconds
......@@ -352,6 +352,7 @@ def run_vidjil(id_file, id_config, id_data, grep_reads,
compute_extra(id_file, id_config, 5)
run_fuse(id_file, id_config, id_data, sample_set_id, clean_before = False)
os.remove(results_filepath)
return "SUCCESS"
def run_igrec(id_file, id_config, id_data, clean_before=False, clean_after=False):
......@@ -557,6 +558,7 @@ def run_mixcr(id_file, id_config, id_data, clean_before=False, clean_after=False
print(row.sample_set_id)
run_fuse(id_file, id_config, id_data, sample_set_id, clean_before = False)
os.remove(results_filepath)
return "SUCCESS"
......
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