fix(faces): analyse match photos ahead of reference headshots (BIT-185) #186

Merged
spark merged 1 commits from task/BIT-185-faces-before-references into main 2026-11-04 23:26:45 +00:00
Owner

Fixes #185

The face worker claimed five reference headshots and waited for them before any match photo. Those headshots refresh suggestions across recent games, so the tick never reached the match and the heartbeat went stale. The library then showed face analysis as unavailable.

Photos are claimed first. One reference headshot is started per tick and not awaited. The heartbeat has its own timer.

The same change is already running on pr-api from a direct edit of the built file. This PR is so the next deploy keeps it.

Fixes https://git.bitreport.pt/BitReport.pt/photoreport/issues/185 The face worker claimed five reference headshots and waited for them before any match photo. Those headshots refresh suggestions across recent games, so the tick never reached the match and the heartbeat went stale. The library then showed face analysis as unavailable. Photos are claimed first. One reference headshot is started per tick and not awaited. The heartbeat has its own timer. The same change is already running on pr-api from a direct edit of the built file. This PR is so the next deploy keeps it.
spark added 1 commit 2026-11-04 23:18:38 +00:00
fix(faces): analyse match photos ahead of reference headshots
ci / rust (pull_request) Successful in 4m2s
ci / typescript (pull_request) Successful in 7m52s
e564aa6f22
A tick that waited on reference photos never reached the match, and the heartbeat went stale so the library showed face analysis as down.
spark merged commit 67b6b7e2fb into main 2026-11-04 23:26:45 +00:00
Sign in to join this conversation.