Skip to content

Commit 5b1ab13

Browse files
fix: trigger checkpoint restore in loop (#265)
1 parent a8dfea0 commit 5b1ab13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compose/checkpoint.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func forwardCheckPoint(ctx context.Context, nodeKey string) context.Context {
136136
return ctx
137137
}
138138
if subCP, ok := cp.SubGraphs[nodeKey]; ok {
139+
delete(cp.SubGraphs, nodeKey) // only forward once
139140
return context.WithValue(ctx, checkPointKey{}, subCP)
140141
}
141142
return context.WithValue(ctx, checkPointKey{}, (*checkpoint)(nil))

0 commit comments

Comments
 (0)