Skip to content

Commit

Permalink
fix(topo): nested subtopo clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <[email protected]>
  • Loading branch information
ngjaying committed Sep 25, 2024
1 parent 76ee0b5 commit ec9300a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/topo/subtopo.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ func (s *SrcSubTopo) Close(ctx api.StreamContext, ruleId string, runId int) {
if s.cancel != nil {
s.cancel()
}
if ss, ok := s.source.(*SrcSubTopo); ok {
ss.Close(ctx, "$$subtopo_"+s.name, runId)
}
RemoveSubTopo(s.name)
}
for _, op := range s.ops {
Expand Down

0 comments on commit ec9300a

Please sign in to comment.