Face analysis stalls behind reference headshots #185

Closed
opened 2026-11-04 23:18:21 +00:00 by spark · 3 comments
Owner

What happened

Portugal x Switzerland, 4 Nov 2026: 1700+ photos sat in PENDING and the library showed face analysis unavailable.

The worker was alive, but one tick awaited five reference headshots before claiming any photo. Each headshot refreshes suggestions across recent games, so the tick never reached the match and the heartbeat went stale (the API treats a beat older than 90s as the engine being down).

Change

Photos are claimed first. One reference headshot is started per tick and not awaited. The heartbeat is written on its own timer, so a long suggestion refresh does not look like a dead worker.

Hotpatched on pr-api dist and worker restarted at 21:24 UTC. This PR is that same change, so the next deploy does not put the old order back.

## What happened Portugal x Switzerland, 4 Nov 2026: 1700+ photos sat in PENDING and the library showed face analysis unavailable. The worker was alive, but one tick awaited five reference headshots before claiming any photo. Each headshot refreshes suggestions across recent games, so the tick never reached the match and the heartbeat went stale (the API treats a beat older than 90s as the engine being down). ## Change Photos are claimed first. One reference headshot is started per tick and not awaited. The heartbeat is written on its own timer, so a long suggestion refresh does not look like a dead worker. Hotpatched on pr-api dist and worker restarted at 21:24 UTC. This PR is that same change, so the next deploy does not put the old order back.
Author
Owner

PR #186

CI is running. I will merge to main when it is green so the next deploy keeps match photos ahead of reference headshots.

PR https://git.bitreport.pt/BitReport.pt/photoreport/pulls/186 CI is running. I will merge to main when it is green so the next deploy keeps match photos ahead of reference headshots.
spark closed this issue 2026-11-04 23:26:45 +00:00
Author
Owner

Merged to main as 67b6b7e2. PR #186

CI was green (rust and typescript). Waiting on the pr-api deploy.

Merged to main as 67b6b7e2. PR https://git.bitreport.pt/BitReport.pt/photoreport/pulls/186 CI was green (rust and typescript). Waiting on the pr-api deploy.
Author
Owner

Deployed on pr-api. Health reports 67b6b7e2. photoreport-worker restarted (pid 741132). The built worker claims one reference headshot without waiting, and no longer claims five before the match photos.

Deployed on pr-api. Health reports 67b6b7e2. photoreport-worker restarted (pid 741132). The built worker claims one reference headshot without waiting, and no longer claims five before the match photos.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BitReport.pt/photoreport#185