Commit bd909ca6 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

metadata is mandatory for rendering projects results, so doing it before post_worktable_tasks

parent 1d64718b
......@@ -118,6 +118,9 @@ def run_project_analysis_if_needed(project):
if not os.path.exists(project.get_worktable_path()):
tasks.append(create_project_worktable.si(project.id))
if project.get_metadata_file_path() and not os.path.exists(project.get_metadata_file_path()):
tasks.append(create_project_metadata_file.si(project.id))
if project.get_global_manhattan_plot_path() and not os.path.exists(project.get_global_manhattan_plot_path()):
post_worktable_tasks.append(create_project_global_plot.si(project.id))
......@@ -130,9 +133,6 @@ def run_project_analysis_if_needed(project):
if project.get_csv_path() and not os.path.exists(project.get_csv_path()):
post_worktable_tasks.append(create_project_csv_file.si(project.id))
if project.get_metadata_file_path() and not os.path.exists(project.get_metadata_file_path()):
post_worktable_tasks.append(create_project_metadata_file.si(project.id))
if len(tasks) + len(post_worktable_tasks) == 0:
return
main_wf = chain(
......
Supports Markdown
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