Skip to content

docs(platform): state the video proxy attempt cap per fetch - #5067

Merged
yannickmonney merged 1 commit into
mainfrom
docs/video-proxy-attempt-cap
Oct 29, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
docs/video-proxy-attempt-cap

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

Since #5066, the video ingestion page (EN/DE/FR) and rule VID-R7 say that each step of a video (metadata, captions, audio) makes at most five attempts and starts none after 90 seconds. The code differs in two ways:

  • MAX_PROXY_RUNS (5) applies to each yt-dlp call, and the step's 90-second window limits only that call's retries (runYtdlp checks route.windowOpen() before moveOn).
  • When a Vimeo video's watch page fails, the metadata step makes a second call through Vimeo's embedded player, with its own attempts. Its beginCall can move it to a proxy that has not failed the video after the window has closed.

This was found while fact-checking the v0.5.94 notes, which were corrected in #5065. The page now says that fetching the metadata, the captions or the audio makes at most five attempts, and retries only within the first 90 seconds of that step. It also explains the Vimeo embed fallback. VID-R7 gets the same correction and now reads "a fetch through a single proxy is not retried", instead of saying that a single proxy is not tried again within a step, which the embed fallback contradicts.

Checklist

  • bun run check: the parts this change touches pass locally on the pinned Bun 1.4.2. These are the domain-spec guard (15 tests), the docs structural suite (38 files, 716 tests) and bun run lint:links (502 pages, every link lands). No code changed.
  • bun run lint:sast: N/A, Markdown only.
  • Translations: N/A. No message catalogue changed, and the DE and FR pages are rewritten natively in the same commit.
  • Docs updated in docs/{en,de,fr}/self-hosted/configuration/video-ingestion.md.
  • README.md / README.de.md / README.fr.md: N/A, they don't cover this.

Test plan

  • Read the "Configure an egress proxy" section on /self-hosted/configuration/video-ingestion (and /de/…, /fr/…) against runYtdlp and YtdlpRoute in services/platform/backend/core/video_links/ytdlp.ts, and against tryEmbedFallback in ingest_video_link.ts.

The video ingestion page and rule VID-R7 said each step of a video makes
at most five attempts and starts none after 90 seconds. The cap of five
is per yt-dlp call, and the 90-second window bounds only its retries. A
Vimeo video whose watch page fails makes a second call in the metadata
step, through Vimeo's embedded player, with attempts of its own; its
first attempt can start after the window, on a proxy that has not failed
the video. Say that in EN, DE and FR, and in the rule.
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 28, 2026
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit f8fd839 Oct 29, 2026
63 checks passed
@yannickmonney
yannickmonney deleted the docs/video-proxy-attempt-cap branch October 29, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant