Skip to content

Commit 881d4bd

Browse files
Merge pull request #3172 from antgonza/ignore-deleted-outputs-in-default-workflows
Ignore deleted outputs in default workflows
2 parents 5ae4bed + 7d41a34 commit 881d4bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

qiita_db/metadata_template/prep_template.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,12 @@ def _get_predecessors(workflow, node):
800800
merging_schemes = {
801801
qdb.archive.Archive.get_merging_scheme_from_job(j): {
802802
x: y.id for x, y in j.outputs.items()}
803-
for j in prep_jobs if j.status == 'success' and not j.hidden}
803+
# we are going to select only the jobs that were a 'success', that
804+
# are not 'hidden' and that have an output - jobs that are not
805+
# hidden and a successs but that do not have outputs are jobs which
806+
# resulting artifacts (outputs) were deleted
807+
for j in prep_jobs if j.status == 'success' and not j.hidden
808+
and j.outputs}
804809

805810
# 2.
806811
pt_dt = self.data_type()

0 commit comments

Comments
 (0)