Commit 967ba40a authored by charlie-ablett's avatar charlie-ablett
Browse files

Process step returns an empty manifest if the step has not finished.

parent c40588ff
......@@ -32,7 +32,9 @@ class ProcessStep < ApplicationRecord
end
def output_file_manifest
if output_file_list.present?
if !finished?
[]
elsif output_file_list.present?
output_file_list
elsif File.exists?(working_directory)
assemble_manifest(directory: working_directory)
......@@ -40,6 +42,7 @@ class ProcessStep < ApplicationRecord
# @TODO flag an error to admin!
ap "Cannot find file location for process step id '#{self.id}', chain id '#{process_chain_id}' and recipe id '#{process_chain.recipe_id}'"
ap "Looking in #{working_directory}"
[]
end
end
......
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