feat(points): P2 step 2.4 - wire generation_tasks points gate (ai_video scene)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 7s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m56s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m43s
AI Code Review / AI Code Review (pull_request) Failing after 21m29s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 23s
CI/CD Pipeline / Validate - Style (pull_request) Failing after 6m34s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 4m4s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 6m35s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 7m12s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 8m23s
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 14h23m52s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 14h12m39s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 14h12m39s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 14h12m40s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 14h23m9s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 14h23m9s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 14h23m21s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 14h48m25s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 14h23m32s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 14h23m32s

This commit is contained in:
xiaoxia-agent
2026-09-15 20:20:41 +08:00
parent 20e311e341
commit 421cc3f25d
3 changed files with 67 additions and 0 deletions
@@ -4,6 +4,7 @@ from typing import Any
from app.api.routes._helpers import check_project_access
from app.auth import AuthenticatedUser, get_current_user
from packages.middleware.points_gate import points_gate
from app.core.storage import OSSStorageService, get_storage_service
from app.core.task_enqueue import (
GLOBAL_PENDING_LIMIT,
@@ -211,6 +212,7 @@ def _resolve_project_and_library(
@router.post("/tasks", response_model=BatchGenerationTaskResponse)
@points_gate("ai_video", quantity_field="count")
def create_generation_task(
request: CreateGenerationTaskRequest,
authenticated_user: AuthenticatedUser = Depends(get_current_user),