Commit 33437d2a authored by Ryan Herbert's avatar Ryan Herbert
Browse files

models/task.py test for "DONE" pre_process_flag

It would seem that we use "DONE" to indicate a pre_process has
completed rather than "COMPLETED" as for scheduler tasks.
parent 7978d0bb
Pipeline #33716 failed with stages
in 8 minutes and 23 seconds
......@@ -117,7 +117,7 @@ def schedule_run(id_sequence, id_config, grep_reads=None):
task = scheduler.queue_task(program, args,
repeats = 1, timeout = defs.TASK_TIMEOUT)
if db.sequence_file[id_sequence].pre_process_flag != "COMPLETED" and db.sequence_file[id_sequence].pre_process_flag :
if db.sequence_file[id_sequence].pre_process_flag != "DONE" and db.sequence_file[id_sequence].pre_process_flag :
db.scheduler_task[task.id] = dict(status ="STOPPED")
db.results_file[data_id] = dict(scheduler_task_id = 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