Index every added photograph before a second face reading #116

Closed
opened 2026-10-22 03:22:49 +01:00 by spark · 1 comment
Owner

Photographs that arrived and were never read (faces_pass 0, about 261k, almost all older than 30 days) stayed behind a second reading of photographs already analysed. The last 30 days in the queue were that second reading, so the worker never started the added archive.

The claim order now takes a hand request, then every unread photograph (last 30 days, then the older archive, newest first), and only then a second reading. The face process cap pinned at 6 on the API container is removed so the worker can use the machine up to the existing 99% CPU limit.

Photographs that arrived and were never read (faces_pass 0, about 261k, almost all older than 30 days) stayed behind a second reading of photographs already analysed. The last 30 days in the queue were that second reading, so the worker never started the added archive. The claim order now takes a hand request, then every unread photograph (last 30 days, then the older archive, newest first), and only then a second reading. The face process cap pinned at 6 on the API container is removed so the worker can use the machine up to the existing 99% CPU limit.
spark closed this issue 2026-10-22 03:31:03 +01:00
Author
Owner

As fotografias adicionadas que nunca tinham sido lidas (cerca de 261 mil, faces_pass 0) já estavam na fila. O worker só passava ao arquivo antigo depois de esvaziar o último mês, e esse mês estava ocupado por uma segunda leitura de fotografias já indexadas. Por isso as que foram adicionadas não começavam.

A ordem passou a ser: um pedido manual, depois todas as que nunca foram lidas (último mês e a seguir o arquivo, da mais recente para a mais antiga), e só então a segunda leitura. O limite de 6 processos de caras no contentor foi retirado. O worker usa os núcleos enquanto o CPU ficar abaixo de 99% (capacidade planeada nesta máquina: 47).

Deploy em produção: versão aabe9f7. Às 03:34 (Lisboa) já havia fotografias com faces_pass 0 e data de setembro marcadas DONE, enquanto as cerca de 134 mil da segunda leitura continuavam pendentes.

PR: #117

As fotografias adicionadas que nunca tinham sido lidas (cerca de 261 mil, faces_pass 0) já estavam na fila. O worker só passava ao arquivo antigo depois de esvaziar o último mês, e esse mês estava ocupado por uma segunda leitura de fotografias já indexadas. Por isso as que foram adicionadas não começavam. A ordem passou a ser: um pedido manual, depois todas as que nunca foram lidas (último mês e a seguir o arquivo, da mais recente para a mais antiga), e só então a segunda leitura. O limite de 6 processos de caras no contentor foi retirado. O worker usa os núcleos enquanto o CPU ficar abaixo de 99% (capacidade planeada nesta máquina: 47). Deploy em produção: versão aabe9f7. Às 03:34 (Lisboa) já havia fotografias com faces_pass 0 e data de setembro marcadas DONE, enquanto as cerca de 134 mil da segunda leitura continuavam pendentes. PR: https://git.bitreport.pt/BitReport.pt/photoreport/pulls/117
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#116