broker-sync/broker_sync/sinks
Viktor Barzin 0ab069349f sinks/wealthfolio: treat duplicates as success in import-summary check
The IMAP cronjob re-processes the full mailbox window on every run, so
on steady-state runs all activities come back tagged duplicate=N. The
existing logic raises ImportValidationError whenever imported_n < total_n,
which makes the cron exit 1 (and the Job is reported FAILED) even though
the data path is healthy.

Treat (imported + duplicates) as "accounted for". Only raise when rows
go missing entirely (silently dropped / validation rejected).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 22:52:11 +00:00
..
__init__.py Add Provider protocol and normaliser 2026-04-17 19:20:12 +00:00
wealthfolio.py sinks/wealthfolio: treat duplicates as success in import-summary check 2026-05-26 22:52:11 +00:00