Commit 152d9c0
committed
fix: fix batch processor
The change to BasePartialProcessor.async_process() in commit d08711f
causes the method to create a new loop on every invocation. This is
because asyncio.get_running_loop() raises RuntimeError also when the
thread has an event loop, since the loop is no longer running after
loop.run_until_complete() terminates.1 parent 9e18800 commit 152d9c0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments