Fix: add executor.shutdown (#14403)

### What problem does this PR solve?

Add executor shutdown in finally clause to free resources.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Jack
2026-04-27 22:38:43 +08:00
committed by GitHub
parent c5116b90e5
commit 872ff08304

View File

@@ -1289,6 +1289,7 @@ async def do_handle_task(task):
)
finally:
executor.shutdown(wait=False)
if has_canceled(task_id):
try:
exists = await thread_pool_exec(