Delivery: do not wait for faces unless destination/event needs player names #151

Closed
opened 2026-11-03 13:18:12 +00:00 by spark · 1 comment
Owner

Items stuck on waiting_for_faces even when the chosen delivery profile does not use {players} / person fields, and even when facesStatus is NONE (nothing will run).

Fix

  • Wait only while faces are PENDING/RUNNING (not NONE).
  • Wait only if folder/file IPTC for that delivery actually references player/person variables.
  • Keep a short grace window when both apply.
Items stuck on `waiting_for_faces` even when the chosen delivery profile does not use `{players}` / person fields, and even when `facesStatus` is NONE (nothing will run). ## Fix - Wait only while faces are PENDING/RUNNING (not NONE). - Wait only if folder/file IPTC for that delivery actually references player/person variables. - Keep a short grace window when both apply.
Author
Owner

Done — merged #152

Behaviour

  • A send the photographer asked for (POST /deliveries) never waits on faces.
  • waiting_for_faces only for every-arrival destinations, and only while faces are PENDING/RUNNING and folder/file/IPTC needs {players}.
  • NONE never waits (sitting in the queue does not start a face job).

Tests

pnpm exec vitest run --config vitest.unit.config.ts src/delivery/faces-wait.test.ts — 4 ok.
tsc --noEmit in apps/api — ok.

After deploy, items already stuck on waiting_for_faces retry on the next claim and leave for the cloud without re-waiting (manual / non-player pads).

## Done — merged [#152](https://git.bitreport.pt/BitReport.pt/photoreport/pulls/152) ### Behaviour - A send the photographer asked for (`POST /deliveries`) **never** waits on faces. - `waiting_for_faces` only for **every-arrival** destinations, and only while faces are `PENDING`/`RUNNING` **and** folder/file/IPTC needs `{players}`. - `NONE` never waits (sitting in the queue does not start a face job). ### Tests `pnpm exec vitest run --config vitest.unit.config.ts src/delivery/faces-wait.test.ts` — 4 ok. `tsc --noEmit` in apps/api — ok. After deploy, items already stuck on `waiting_for_faces` retry on the next claim and leave for the cloud without re-waiting (manual / non-player pads).
spark closed this issue 2026-11-03 13:20:47 +00:00
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#151