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 1950089 commit a2e6a5aCopy full SHA for a2e6a5a
template/server/messaging.py
@@ -349,13 +349,13 @@ async def execute(
349
await self._ws.send(request)
350
break
351
except (ConnectionClosedError, WebSocketException) as e:
352
- logger.warning(
353
- f"WebSocket connection lost while sending execution request, {i + 1}. reconnecting...: {str(e)}"
354
- )
355
- await self.reconnect()
356
-
357
# Keep the last result, even if error
358
if i < max_retries - 1:
+ logger.warning(
+ f"WebSocket connection lost while sending execution request, {i + 1}. reconnecting...: {str(e)}"
+ )
+ await self.reconnect()
+
359
del self._executions[message_id]
360
message_id = str(uuid.uuid4())
361
execution = Execution()
0 commit comments