clipwright/cloud
juancarlos.cavero 60fa37a969 fix(gpu,proxy): release ASR models in the API, probe one video not the playlist
Three failures measured in prod on 17-sep-2026, one deploy.

1. 5 of 12 jobs failed with "ffmpeg could not cut clip ... exit 187, 0 bytes".
   Exit 187 is AVERROR_EXIT after "h264_nvenc: Could not open encoder":
   VRAM was full. The uvicorn process itself held 7.7 GB of the 20 GB card
   while idle: the thumbnail studio and /api/subtitle on a dubbed clip
   transcribe in-process, and the whisper (ctranslate2) and parakeet
   (onnxruntime CUDA) singletons then lived in the API for good. Both call
   transcribe_backends.release_models() now; the loaders fetch their model
   inside the ASR gate so a release can never pull it from under a running
   transcription.

2. 26 of the 37 probes that reached the per-GB proxy in 10 days were
   `watch?v=X&list=...` or mix links. Neither the probe nor the download set
   `noplaylist`, so yt-dlp walked the whole list, died on its first private /
   age-gated / bot-checked entry (a video nobody pasted), the probe read it
   as an IP problem and paid the proxy to walk the same list again, and the
   user got a 400 for a valid link. Reproduced in the prod container: the
   same URL with noplaylist answers in 9.6 s on a static. The probe also
   keeps every attempt's error per route now, so the anonymous retry's
   bot-check cannot overwrite a "confirm your age" from the cookie attempt
   into an escalation.

3. noplaylist does nothing for a search or a bare playlist URL: one
   `results?search_query=` held the probe thread for 2220 s in the container
   and still failed. Search, playlist, channel and feed URLs are refused by
   path before any request, with a message that says what to paste.
2026-09-17 17:19:57 +02:00
..
__init__.py feat(rgpd): legales, cookies, baja de marketing, marcado AI Act y alertas sin PII 2026-09-07 19:22:52 +02:00
account.py feat(mcp): OAuth 2.1 for claude.ai/ChatGPT, and a "connect an agent" panel 2026-08-27 01:17:49 +02:00
alerts.py fix(alerts): probe the static pool the way the download asks 2026-09-08 11:30:26 +02:00
analytics.py feat(billing): mirror paid invoices, top-ups and refunds into OpenPanel as revenue 2026-09-03 14:16:19 +02:00
api_keys.py feat(agents): the pipeline as a platform — API keys, MCP server, webhooks 2026-08-03 22:33:16 +02:00
auth.py fix(auth): harden MX verification after code review 2026-08-13 10:07:20 +02:00
billing.py fix(ci): keep the subscriber-alert rule importable without the stripe SDK 2026-09-16 23:20:21 +02:00
config.py fix(ci): keep the subscriber-alert rule importable without the stripe SDK 2026-09-16 23:20:21 +02:00
database.py feat(rgpd): legales, cookies, baja de marketing, marcado AI Act y alertas sin PII 2026-09-07 19:22:52 +02:00
digest.py fix(digest): harden daily digest after code review 2026-08-18 14:53:31 +02:00
disposable_domains.txt feat(auth): verify email domain MX before sending magic links 2026-08-13 01:03:05 +02:00
disposable_mx.txt fix(auth): harden MX verification after code review 2026-08-13 10:07:20 +02:00
email_policy.py fix(auth): harden MX verification after code review 2026-08-13 10:07:20 +02:00
emails.py fix(cloud): close the gaps the account-deletion review turned up 2026-08-24 19:26:12 +02:00
LICENSE fix(cloud): harden paid-mode surface + source-available license for cloud/ 2026-07-16 17:30:12 +02:00
managed_keys.py feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +02:00
marketing.py feat(rgpd): legales, cookies, baja de marketing, marcado AI Act y alertas sin PII 2026-09-07 19:22:52 +02:00
mcp_oauth.py feat(mcp): OAuth 2.1 for claude.ai/ChatGPT, and a "connect an agent" panel 2026-08-27 01:17:49 +02:00
metering.py fix(gpu,proxy): release ASR models in the API, probe one video not the playlist 2026-09-17 17:19:57 +02:00
models.py feat(rgpd): legales, cookies, baja de marketing, marcado AI Act y alertas sin PII 2026-09-07 19:22:52 +02:00
oauth.py feat(abuse): abrir free a email normal + bloquear dominios desechables 2026-07-21 00:45:54 +02:00
proxy_ledger.py fix(download): explicit default,mweb clients so account cookies stop yielding "Video unavailable" 2026-09-06 03:43:46 +02:00
social_profiles.py feat(social): keep scheduling calendar + add Content calendar button in dashboard 2026-07-16 19:26:51 +02:00
storage.py feat(delivery): serve clips from a custom R2 domain, and show download progress 2026-08-23 13:49:08 +02:00
videos.py feat(rgpd): legales, cookies, baja de marketing, marcado AI Act y alertas sin PII 2026-09-07 19:22:52 +02:00