fix(people): restore worker main-loop dispatch inside polling loop (regression from #763) #764
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/people-worker-dispatch-indentation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CRITICAL production regression from #763: the job-type dispatch block in workers/people main.py was accidentally moved OUTSIDE the while RUNNING polling loop (indentation 4 vs 8). Since the #763 deploy the people worker claims a job, lazily loads models, then loops forever without dispatching — every claimed job (discovery_people, owner_face_recognition, owner_face_embedding_backfill) sits 'running' until lease expiry and gets requeued by the recovery service, never processed.
Verified on prod with a canary owner_face_embedding_backfill job: claimed 01:18:58, zero handler logs / media downloads / results, lease expired 01:28:58, worker emits only empty claim polls.
Fix: restore the dispatch block to its pre-#763 indentation (inside the loop). Pure indentation change, no logic touched. py_compile green.