Commit 3ee50fe6 authored by Aidan Richard Wiederhold's avatar Aidan Richard Wiederhold
Browse files

Merge branch 'aiwieder/job_chain_files' into 'master'

Set filetype automatically if given a single output job as input

See merge request !53
parents 00f59fa3 60ee1498
Pipeline #3880770 passed with stage
in 5 minutes and 20 seconds
......@@ -168,6 +168,13 @@ def recursively_create_input(production_name, job_name, filetype, prod_data):
raise NotImplementedError(
f"Looking for {filetype} but {job_name} only produces {output_filetypes}"
)
else:
if len(output_filetypes) > 1:
raise ValueError(
"An input filetype must be specified when taking input from a multi-output job!"
)
else:
filetype = output_filetypes[0]
# Run the job the desired job depends on
result = logging_subprocess_run(
......
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