Skip to content

Commit 9639674

Browse files
committed
Track node group hub nodes when a node group member's tracking header is 'always'
1 parent a6958ec commit 9639674

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

YarnSpinner.Compiler/Visitors/NodeTrackingVisitor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ public NodeTrackingVisitor(HashSet<string> ExistingTrackedNodes, HashSet<string>
6060
if (tracking.Equals("always"))
6161
{
6262
TrackingNode.Add(title);
63+
// If we're in a node group, 'title' is actually our
64+
// rewritten individual node title. We'll track that, but we
65+
// also need to track the hub node, so we'll also add that
66+
// to the tracking list.
67+
if (string.IsNullOrEmpty(context.NodeGroup) == false)
68+
{
69+
TrackingNode.Add(context.NodeGroup);
70+
}
6371
}
6472
else if (tracking.Equals("never"))
6573
{

0 commit comments

Comments
 (0)