fix run_async

This commit is contained in:
jxxghp
2025-08-25 17:46:06 +08:00
parent da0b3b3de9
commit 2357a7135e
+1 -1
View File
@@ -461,7 +461,7 @@ class Scheduler(metaclass=Singleton):
if not func: if not func:
return return
if inspect.iscoroutinefunction(func): if inspect.iscoroutinefunction(func):
AsyncUtils.run_async_in_executor(func(*args, **kwargs)) AsyncUtils.run_async(func(*args, **kwargs))
else: else:
job["func"](*args, **kwargs) job["func"](*args, **kwargs)
except Exception as e: except Exception as e: