Skip to content

Commit 6dd0882

Browse files
committed
Handle errors when flushing buffer in execout_walker
1 parent 10084f9 commit 6dd0882

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

orchestrator/execout/execout_walker.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ func (r *Walker) sendItems(reader execout.FileReader) error {
306306

307307
s := time.Now()
308308
if r.supportBuffering {
309-
return r.buffer.Flush(r.streamOut)
309+
if err := r.buffer.Flush(r.streamOut); err != nil {
310+
return fmt.Errorf("flushing buffer on end of iteration: %w", err)
311+
}
310312
}
311313
flushingDuration += time.Since(s)
312314

0 commit comments

Comments
 (0)