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 3dda9c9 commit 1e3b63dCopy full SHA for 1e3b63d
llmstack/play/utils.py
@@ -2,6 +2,7 @@
2
import logging
3
import re
4
import threading
5
+from concurrent.futures import CancelledError
6
from urllib.parse import quote
7
8
from diff_match_patch import diff_match_patch
@@ -82,8 +83,8 @@ def start_loop(loop):
82
83
def _done_callback(future):
84
try:
85
future.result()
- except asyncio.CancelledError:
86
- pass
+ except CancelledError:
87
+ logger.info("Task cancelled")
88
except Exception as e:
89
logger.exception(f"Task failed with error: {e}")
90
finally:
0 commit comments