whisper-money/app
Víctor Falcón 6f7c60a8fe fix(ai): de-duplicate the categorization backfill per user
Raising retry_after stops one dispatch from being re-reserved, but it
does nothing against a *duplicate* dispatch. The ai queue runs two
concurrent workers, so a double "Enable AI" click (or re-enabling
consent mid-run) launches two backfills that read the same pending
snapshot and both bill the model — the very harm tries=1 was meant to
avoid but structurally cannot.

Implement ShouldBeUnique keyed on the user id, mirroring the sibling
RetryTransientAiCategorizationJob, so a user has at most one backfill in
flight. Add a test anchoring the dedup key.
2026-07-05 11:22:50 +02:00
..
Actions fix(security): scope job-status endpoints to owner + feature-area fixes (#627) 2026-07-03 14:49:32 +02:00
Ai/Agents feat(ai): auto-categorize transactions with AI (behind flag) (#535) 2026-06-15 16:35:20 +02:00
Console/Commands feat(encryption): commands to warn and remove inactive encrypted-data accounts (#633) 2026-07-03 15:57:04 +00:00
Contracts feat(connections): manage which accounts a bank connection syncs (#558) 2026-06-18 16:22:49 +02:00
Enums feat(transactions): serve import dedup and account ledger from the backend (#631) 2026-07-03 16:49:59 +02:00
Events Add Budgeting Feature to Track and Manage Spending (#36) 2026-01-21 15:25:50 +01:00
Exceptions/Banking fix(banking): skip inaccessible EnableBanking accounts instead of failing the connection (#559) 2026-06-19 08:59:05 +02:00
Features refactor(ai): remove AiConsentSettings feature flag (#619) 2026-07-01 09:47:55 +02:00
Http refactor: consolidate duplicated financial calculations (#643) 2026-07-04 22:26:44 +02:00
Jobs fix(ai): de-duplicate the categorization backfill per user 2026-07-05 11:22:50 +02:00
Listeners fix(discord): show old → new plan on plan change notification (#637) 2026-07-04 15:49:09 +00:00
Mail refactor(drip): extract base mailable and job for the drip email family (#641) 2026-07-04 20:51:38 +02:00
Models refactor: consolidate duplicated financial calculations (#643) 2026-07-04 22:26:44 +02:00
Notifications fix: verify email via signed link without requiring login (#490) 2026-06-05 10:01:32 +02:00
Policies refactor(policies): extract HandlesUserOwnership trait (#478) 2026-06-03 17:43:30 +02:00
Providers fix: stop double-dispatching transaction listeners (N+1 insert into jobs) (#620) 2026-07-02 13:26:45 +00:00
Rules feat: parent/child category tree (#474) 2026-06-03 19:30:12 +02:00
Services refactor: consolidate duplicated financial calculations (#643) 2026-07-04 22:26:44 +02:00