Face queue: Torreense–Sunderland stuck behind the backlog #6

Open
opened 2026-10-17 13:05:49 +01:00 by spark · 0 comments
Owner

What was stuck

Torreense–Sunderland, 15 Oct 2026, event bf5c015d-806e-49ac-b904-95b58bdbd268.

FacesView showed 231 photos in analysis, 0 groups, 0 people. The button did nothing.

Not an engine-off worker

photoreport-worker on pr-api (CT 264) is online. Startup logs name photoreport-faces and /srv/photoreport-data/models (yunet model present). There is no "face analysis is off in this worker". Six face processes were running, about 900 photos/hour.

Why it sat for days

All 231 were PENDING / READY since ingest on 15 Oct (never claimed). The queue is oldest-first. 64,225 pending photos were ahead of this event. The organisation has about 257,000 PENDING photos from 15–17 Oct, while ingest is on the order of 90,000 photos/day, so the queue does not catch up. POST /v1/events/:id/faces/analyse only requeues NONE and FAILED, so it returned 0 for photos already PENDING.

Done on the server

Those 231 were analysed with the existing face engine (this event only). Result: 231 DONE, 266 groups, 453 faces, 0 failed. Four photos failed once on a transaction timeout and succeeded on retry.

Code ready locally, not pushed

Branch task/faces-engine-unavailable:

  • The analyse button moves that event to the front of the queue and requeues RUNNING photos the worker has abandoned (10 minutes).
  • The worker writes a heartbeat. GET /v1/events/:id/face-groups returns available. FacesView shows "Análise de caras indisponível" when the engine is not running, instead of "A analisar as fotos…" for as long as photos sit in the queue.
## What was stuck Torreense–Sunderland, 15 Oct 2026, event `bf5c015d-806e-49ac-b904-95b58bdbd268`. FacesView showed 231 photos in analysis, 0 groups, 0 people. The button did nothing. ## Not an engine-off worker `photoreport-worker` on pr-api (CT 264) is online. Startup logs name `photoreport-faces` and `/srv/photoreport-data/models` (yunet model present). There is no "face analysis is off in this worker". Six face processes were running, about 900 photos/hour. ## Why it sat for days All 231 were `PENDING` / `READY` since ingest on 15 Oct (never claimed). The queue is oldest-first. **64,225** pending photos were ahead of this event. The organisation has about 257,000 `PENDING` photos from 15–17 Oct, while ingest is on the order of 90,000 photos/day, so the queue does not catch up. `POST /v1/events/:id/faces/analyse` only requeues `NONE` and `FAILED`, so it returned 0 for photos already `PENDING`. ## Done on the server Those 231 were analysed with the existing face engine (this event only). Result: **231 DONE, 266 groups, 453 faces, 0 failed.** Four photos failed once on a transaction timeout and succeeded on retry. ## Code ready locally, not pushed Branch `task/faces-engine-unavailable`: - The analyse button moves that event to the front of the queue and requeues `RUNNING` photos the worker has abandoned (10 minutes). - The worker writes a heartbeat. `GET /v1/events/:id/face-groups` returns `available`. FacesView shows "Análise de caras indisponível" when the engine is not running, instead of "A analisar as fotos…" for as long as photos sit in the queue.
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#6