perf(automation): 持久队列驱动并优化履约热路径

This commit is contained in:
yml
2026-11-23 15:07:31 +08:00
parent 11c2a0dba7
commit 2549511598
31 changed files with 1658 additions and 235 deletions
@@ -43,6 +43,10 @@ def _load_task_for_update(db: Session, task_id: int) -> PlatformFulfillmentTask:
)
if task is None:
raise HTTPException(status_code=404, detail="直播账号履约任务不存在")
from .views import invalidate_task_list_count_cache
# 所有用户操作写路径都会先拿行锁;在这里失效可覆盖完成、取消、恢复等状态变更。
invalidate_task_list_count_cache()
return task