diff --git a/platform/backend/app/api/tasks.py b/platform/backend/app/api/tasks.py index f148e09..dc20edf 100644 --- a/platform/backend/app/api/tasks.py +++ b/platform/backend/app/api/tasks.py @@ -231,6 +231,11 @@ def run_creator_task( from datetime import datetime, timezone new_db = SessionLocal() try: + new_task = new_db.query(ContentTask).filter(ContentTask.task_id == task_id).first() + if new_task: + new_task.message = "创作脚本运行中..." + new_task.progress = 30 + new_db.commit() result = run_creator(topic_id) new_task = new_db.query(ContentTask).filter(ContentTask.task_id == task_id).first() if new_task: