Archive videos' faces start while photos keep arriving; video-face counts per source #73

Merged
spark merged 1 commits from task/archive-video-faces-queue into main 2026-10-20 22:02:18 +01:00
Owner

After #72 no archive video had its faces analysed in production: the face worker took a video only on a tick that claimed no photo, and with live games and the archive backlog there is nearly always a photo to claim (e.g. 211 waiting in one event today).

  • FaceWorker: one video at a time runs in one of the engine's places beside the photos (photos get the rest, total never above concurrency). With a single place the photos keep it and a video waits until no photo is in flight.
  • Cloud source counts: videoFacesPending, videoFacesDone, videoFacesFailed (made videos only), so the queue can be watched.
  • Tests: src/faces/worker.test.ts (busy photo queue still starts a video; never above capacity; single place leaves it to photos), counts asserted in the archive video-faces test. API suite: 337 passed.
  • docs/archive.md updated. No migration, nothing deleted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SC7s5gwdivkoBXbRGxbnAo

After #72 no archive video had its faces analysed in production: the face worker took a video only on a tick that claimed no photo, and with live games and the archive backlog there is nearly always a photo to claim (e.g. 211 waiting in one event today). - `FaceWorker`: one video at a time runs in one of the engine's places beside the photos (photos get the rest, total never above `concurrency`). With a single place the photos keep it and a video waits until no photo is in flight. - Cloud source counts: `videoFacesPending`, `videoFacesDone`, `videoFacesFailed` (made videos only), so the queue can be watched. - Tests: `src/faces/worker.test.ts` (busy photo queue still starts a video; never above capacity; single place leaves it to photos), counts asserted in the archive video-faces test. API suite: 337 passed. - docs/archive.md updated. No migration, nothing deleted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01SC7s5gwdivkoBXbRGxbnAo
spark added 1 commit 2026-10-20 21:38:13 +01:00
Start archive videos' faces while photos keep arriving, and count them per source.
ci / rust (pull_request) Successful in 3m57s
ci / typescript (pull_request) Failing after 7m26s
49f50a8f44
The face worker took a video only on a tick that claimed no photo. With live games and the
archive's backlog there is nearly always a photo to claim, so the videos queued by #72 never
started. Now one video runs at a time in one of the engine's places beside the photos (the photos
get the rest); with a single place the photos keep it, as before.

The archive's source counts carry videoFacesPending/Done/Failed so the queue can be seen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SC7s5gwdivkoBXbRGxbnAo
paperclip-review-bot left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-10-20 22:02:17 +01:00
spark merged commit 9299b68680 into main 2026-10-20 22:02:18 +01:00
Sign in to join this conversation.