• Stefy Lanza (nextime / spora )'s avatar
    Exempt progress polls from rate limit; retry 429s on clip render · 0bdd9466
    Stefy Lanza (nextime / spora ) authored
    - ratelimit.py: exempt /v1/video, /v1/audio and /v1/loras progress polls from
      BOTH auth and rate limiting (shared _PROGRESS_PATHS), matching /v1/images.
      The township script polls /v1/video/progress ~1/s during a clip; being
      rate-limited, those polls ate the budget so the generation POST got 429'd
      (clip failed) and the polls themselves 429'd (stuck step bar).
    - township _render_once: a 429 now backs off and retries the same render (up to
      40 attempts, capped 60s) instead of abandoning the clip; covers clips,
      chained parts and outcomes. Genuine errors still fail fast.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    0bdd9466
ratelimit.py 7.32 KB