Skip to content

Commit a9540d6

Browse files
committed
Propagate cached job output replacement to copies (made by database operation tools)
Should fix the issue we had during Galaxy live, where we had a step in which we picked the first dataset collection element from a mapped over collection whose outputs where not yet replaced by the job cache. The effect of this is that the extracted dataset's dataset was deleted, and all downstream jobs where waiting for this dataset to become terminal.
1 parent d1543b7 commit a9540d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/galaxy/model/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5475,6 +5475,7 @@ class HistoryDatasetAssociation(DatasetInstance, HasTags, Dictifiable, UsesAnnot
54755475
dataset_id: Mapped[Optional[int]]
54765476
hidden_beneath_collection_instance: Mapped[Optional["HistoryDatasetCollectionAssociation"]]
54775477
tags: Mapped[List["HistoryDatasetAssociationTagAssociation"]]
5478+
copied_to_history_dataset_associations: Mapped[List["HistoryDatasetAssociation"]]
54785479

54795480
def __init__(
54805481
self,
@@ -5562,6 +5563,9 @@ def copy_from(self, other_hda, new_dataset=None, include_tags=True, include_meta
55625563
self.copy_tags_from(self.user, other_hda)
55635564
self.dataset = new_dataset or other_hda.dataset
55645565
self.copied_from_history_dataset_association_id = other_hda.id
5566+
for copied_hda in self.copied_to_history_dataset_associations:
5567+
copied_hda.copy_from(self, include_tags=include_tags, include_metadata=include_metadata)
5568+
55655569
if old_dataset:
55665570
old_dataset.full_delete()
55675571

0 commit comments

Comments
 (0)