Harden closed-loan trainer — run lock + per-loan idempotency

Featurekamo-shared-library
Ya
15 Julai 2026, 03:25 UTC
Mwandishi
Kamo
Ahadi ya
e4d3e2c

- ClosedLoanTrainingRun.claim(): atomic conditional UPDATE that takes ownership of a run only when it is not already RUNNING or its heartbeat is stale (previous owner died). Stops two workers — a double-clicked control, run-all overlapping a per-org kick, or a second service replica — from walking the same org's loans at once and duplicating corrections / garbling counters. - **************** a closed loan is ground truth, so once labeled there is nothing to re-learn from re-reading its documents. The trainer skips marked loans, which keeps the repeated passes (that exist to catch newly-closed loans) from duplicating labels and skewing the corpus toward frequently-reprocessed loans.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei