clipwright/cloud
juancarlos.cavero 730f7de949 fix: reject too-short sources at submit and stop alerts blaming recovered downloads
Prod 20-ago, 5 of 12 managed jobs failed and the alert said 'youtube
download' — no download had terminally failed. Three fixes:

- The quality probe now reports source duration, and /api/process rejects
  sources under MIN_SOURCE_SECONDS (default 45, 0 disables) on all three
  ingest paths with a clear message. A 24s YouTube Short cannot yield
  15-60s clips; Gemini returns nothing and the job burns managed minutes
  to die with 'no usable clips' (3 of the 5 failures, one user retrying
  the same cat video).

- _job_error_text drops per-attempt download warnings when a later
  attempt succeeded (HD-direct fails on every job since the server IP
  ban; static proxies recover it), and gained an 'Error:' marker so
  raised exceptions (RuntimeError:, GeminiBlockedError:) reach the alert
  instead of a bare 'Traceback ... exit code 1'. The classifier names
  'no clips found (user video)' as its own content-shaped category.

- (env, no code) DIRECT_FIRST=0 in prod: with the server IP banned the
  direct attempt only added ~10s and the noise behind these alerts.
2026-08-20 22:54:51 +02:00
..
__init__.py feat(alerts): daily Telegram ops digest 2026-08-18 14:40:55 +02:00
alerts.py fix: reject too-short sources at submit and stop alerts blaming recovered downloads 2026-08-20 22:54:51 +02:00
analytics.py feat(analytics): report job outcomes to OpenPanel, with the user's job index 2026-07-28 21:49:40 +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(billing): stop stranding customers whose payment failed 2026-07-25 15:14:15 +02:00
config.py fix(subtitles): stop charging quota for burning captions 2026-07-25 17:16:59 +02:00
database.py feat: add hosted paid mode (managed keys, Stripe trial, metering) 2026-07-14 13:04:43 +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(emails): stop duplicate expiry warnings and fix the button that 404s 2026-07-27 22:31:04 +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
metering.py fix(billing): stop stranding customers whose payment failed 2026-07-25 15:14:15 +02:00
models.py fix(auth): harden MX verification after code review 2026-08-13 10:07:20 +02:00
oauth.py feat(abuse): abrir free a email normal + bloquear dominios desechables 2026-07-21 00:45:54 +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(projects): reopen archived projects from history for further editing 2026-07-18 03:42:17 +02:00
videos.py feat(hook): replace semantics — a new hook swaps the burned one, plus remove 2026-08-19 16:01:53 +02:00