We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81fbc70 commit b29af96Copy full SHA for b29af96
1 file changed
eval_protocol/pytest/buffer.py
@@ -71,6 +71,12 @@ async def close(self):
71
Flush any remaining samples in the buffer.
72
"""
73
async with self.lock:
74
+ # Also flush pending (incomplete) samples to avoid data loss
75
+ if self.pending_samples:
76
+ for rows in self.pending_samples.values():
77
+ self.completed_samples_buffer.append(rows)
78
+ self.pending_samples.clear()
79
+
80
if self.completed_samples_buffer:
81
await self._flush_unsafe()
82
0 commit comments