Skip to content

Commit 036ac97

Browse files
authored
fix: Eventloop unclosed (#796)
When I call ragas in the fastapi, every time I call it, python will have an open event loop (/proc/self/fd).
1 parent ab5f6ac commit 036ac97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ragas/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def run(self):
9696
results = self.loop.run_until_complete(self._aresults())
9797
finally:
9898
self.results = results
99-
self.loop.stop()
99+
self.loop.close()
100100

101101

102102
@dataclass

0 commit comments

Comments
 (0)