From 5be3c0a10a8b817110e87629f255bb1148578af1 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 4 Jun 2026 13:36:55 +0200 Subject: [PATCH] wf --- models/workflow/workflow.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index e33c66e..cd090f0 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -1657,14 +1657,19 @@ func (w *Workflow) validateDynamicFilters() []IntegrityViolation { } // validateAnchorOutputs mirrors oc-front's anchor-on-non-storage check: -// the §oc:access§ magic value must only appear as an output of a storage -// (or dynamic-storage) element. +// the §oc:access§ magic value must only appear as an output of a storage, +// dynamic-storage, or compute node that has an active embedded storage selected. func (w *Workflow) validateAnchorOutputs() []IntegrityViolation { var violations []IntegrityViolation for id, item := range w.Graph.Items { if w.Graph.IsStorage(item) || (w.Graph.IsDynamic(item) && item.Dynamic.Type == tools.STORAGE_RESOURCE) { continue } + if w.Graph.IsCompute(item) { + if _, ok := w.SelectedEmbeddedStorages[id]; ok { + continue + } + } for _, p := range w.Outputs[id] { if p.Value == ocAnchorAccess { violations = append(violations, IntegrityViolation{