perf(automation): 持久队列驱动并优化履约热路径
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user