Skip to content

Commit a8a47af

Browse files
committed
Break out if g.Ctx is done
1 parent c64c889 commit a8a47af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

worker/groups.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,9 @@ func (g *groupi) processOracleDeltaStream() {
10231023
if err == nil {
10241024
break
10251025
}
1026+
if g.Ctx().Err() != nil {
1027+
break
1028+
}
10261029
glog.Errorf("While proposing delta with MaxAssigned: %d and num txns: %d."+
10271030
" Error=%v. Retrying...\n", delta.MaxAssigned, len(delta.Txns), err)
10281031
}

0 commit comments

Comments
 (0)