refactor: bound shared thread pool shutdown

This commit is contained in:
jxxghp
2026-08-24 14:51:38 +08:00
parent ad45bfac5d
commit 8826219173
7 changed files with 229 additions and 16 deletions
+2 -2
View File
@@ -478,8 +478,8 @@ def pytest_sessionfinish(session, exitstatus):
from app.runtime.thread import ThreadHelper
helper = ThreadHelper.get_existing_instance()
if helper:
helper.shutdown()
if helper and helper.shutdown() is False:
raise RuntimeError("shared thread pool did not converge")
except Exception as err:
_report_session_cleanup_error(session, "thread helper", err)