Merge branch 'main' into deploy/dev

This commit is contained in:
Novice
2025-07-02 10:34:59 +08:00
67 changed files with 710 additions and 406 deletions

View File

@ -220,6 +220,9 @@ class WorkflowAppGenerator(BaseAppGenerator):
# new thread with request context and contextvars
context = contextvars.copy_context()
# release database connection, because the following new thread operations may take a long time
db.session.close()
worker_thread = threading.Thread(
target=self._generate_worker,
kwargs={