Skip to content

Commit 8eeab36

Browse files
yield partial on context cancel
1 parent a088923 commit 8eeab36

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

utils/logs/fifo_logger.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ func (w *FIFOWriter) ReadLines(ctx context.Context) iter.Seq[string] {
4949
var partial []byte
5050
for {
5151
if err := parallelisation.DetermineContextError(ctx); err != nil {
52+
if len(partial) > 0 {
53+
yield(string(partial))
54+
}
5255
return
5356
}
5457

0 commit comments

Comments
 (0)