Commit dad55799 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

init_test_db.py fix run data

add a data_file to sequence_file and add a status to the scheduler_task.
This ensures the task will not be run by an existing scheduler. And
having the data_file ensures the run icon will appear.
parent a7b1aab8
......@@ -79,7 +79,8 @@ class DBInitialiser(object):
info="test file %s %d" % (sample_set.sample_type, i),
filename="test_file.fasta",
size_file=1024,
network=False
network=False,
data_file="test_sequence_file"
)
db.sample_set_membership.insert(sample_set_id=sample_set.id, sequence_file_id=sfid)
......@@ -90,7 +91,8 @@ class DBInitialiser(object):
for sf in sequence_files:
membership = db(db.sample_set_membership.sequence_file_id == sf.id).select(limitby=(0,1)).first()
stid = db.scheduler_task.insert(
application_name="vidjil"
application_name="vidjil",
status="COMPLETED"
)
db.results_file.insert(
sequence_file_id=sf.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