Upgrade greenlet and sqlalchemy dependencies

This commit is contained in:
grossmj committed 2026-01-26 19:50:42 +08:00
1 parent 1d45df6613
commit abaeab6242
5 files changed
+10 -10

No files matched your search

+2 -1
View File
@@ -20,6 +20,7 @@ import asyncio
import sys
import os
import threading
import inspect
async def wait_run_in_executor(func, *args, **kwargs):
@@ -103,7 +104,7 @@ async def wait_for_process_termination(process, timeout=10):
async def _check_process(process, termination_callback):
if not hasattr(sys, "_called_from_test") or not sys._called_from_test:
returncode = await process.wait()
if asyncio.iscoroutinefunction(termination_callback):
if inspect.iscoroutinefunction(termination_callback):
await termination_callback(returncode)
else:
termination_callback(returncode)