Commit 18901581 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'hotfix-s/3606-failed-preprocess' into 'dev'

Failed process must not be relaunched

Closes #3606

See merge request !347
parents 9402d384 8734b3f8
Pipeline #48369 passed with stages
in 6 minutes and 35 seconds
......@@ -184,6 +184,11 @@ def run_vidjil(id_file, id_config, id_data, grep_reads,
from subprocess import Popen, PIPE, STDOUT, os
from datetime import timedelta as timed
if db.sequence_file[id_file].pre_process_flag == "FAILED" :
print("Pre-process has failed")
raise ValueError('pre-process has failed')
return "FAIL"
## re schedule if pre_process is still pending
if db.sequence_file[id_file].pre_process_flag not in ["COMPLETED", "DONE"] and db.sequence_file[id_file].pre_process_flag:
......@@ -200,11 +205,6 @@ def run_vidjil(id_file, id_config, id_data, grep_reads,
return "SUCCESS"
if db.sequence_file[id_file].pre_process_flag == "FAILED" :
print("Pre-process has failed")
raise ValueError('pre-process has failed')
return "FAIL"
## les chemins d'acces a vidjil / aux fichiers de sequences
upload_folder = defs.DIR_SEQUENCES
out_folder = defs.DIR_OUT_VIDJIL_ID % id_data
......
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