Restore history= in _create_skipped_output constructor

add_dataset sets history and hid, but the HDA may enter the session
before add_dataset runs. Pass history in constructor so it's never
in session without a history association.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
John Chilton
2026-03-22 19:15:04 -04:00
co-authored by Claude Opus 4.6
parent bce5b360c8
commit fc69697dd8
+1
View File
@@ -2127,6 +2127,7 @@ class PickValueModule(WorkflowModule):
history = invocation.history
hda = model.HistoryDatasetAssociation(
name="Pick Value - skipped",
history=history,
create_dataset=True,
flush=False,
)