fix(backend): Avoid executor stuck on cleanup waiting execution completion

This commit is contained in:
Zamil Majdy
2025-05-12 22:29:41 +01:00
parent d2bf0af3cd
commit 4d99ae27c9

View File

@@ -1124,7 +1124,7 @@ class ExecutionManager(AppProcess):
if hasattr(self, "executor"):
log(f"{prefix} ⏳ Shutting down GraphExec pool...")
self.executor.shutdown(cancel_futures=False, wait=True)
self.executor.shutdown(cancel_futures=True, wait=False)
log(f"{prefix} ⏳ Disconnecting Redis...")
redis.disconnect()