Recalculate the account after a Wise linked-balance processing failure

JA
15h ago
+241-19

Closes jaysbeekay/sure#1014

Fork pre-flight for we-promise/sure#6139 (same branch, up/wise-linked-failure-sync, same commit). Upstream issue: we-promise/sure#6105.

Base: mirror/upstream-main.

After a processing failure, WiseItem::ProcessLinkedAccountJob now queues account.sync_later once it has logged, so booked entries get their balances, family caches and transfer matching without waiting for the next connection sync. After a jar-linking failure it does not recalculate, and a scheduling failure is logged with a DebugLogEntry. See the upstream PR for the red-first results and the mutations.

Validation: full unit suite 20282 runs, 0 failures, 8 errors (the image's known ReleaseNotesWorkflowTest node errors) on 3d7c7b18b; RuboCop, ERB lint and Brakeman clean. No migration.