fix(agent): ignore expected app-server reader cancellation

This commit is contained in:
jxxghp
2026-09-11 18:57:03 +08:00
parent 8704088ad5
commit d22fa746fd
2 changed files with 10 additions and 2 deletions

View File

@@ -364,7 +364,7 @@ async def _execute_app_server(
if not stderr_reader.done():
stderr_reader.cancel()
reader_result = (await asyncio.gather(stderr_reader, return_exceptions=True))[0]
if isinstance(reader_result, BaseException):
if isinstance(reader_result, BaseException) and not isinstance(reader_result, asyncio.CancelledError):
failure = failure or type(reader_result).__name__
return {
"returncode": process.returncode,