We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76c76b commit 80c75d9Copy full SHA for 80c75d9
suzieq/poller/worker/worker.py
@@ -138,8 +138,11 @@ async def run(self):
138
tasks = await self._pop_waiting_worker_tasks()
139
while tasks:
140
try:
141
- _, pending = await asyncio.wait(
+ done, pending = await asyncio.wait(
142
tasks, return_when=asyncio.FIRST_COMPLETED)
143
+ for d in done:
144
+ if d.exception():
145
+ raise d.exception()
146
tasks = list(pending)
147
running_svcs = self.service_manager.running_services
148
if tasks and any(i._coro in running_svcs
0 commit comments