fix(main): run the sweep one at a time and batch the settled lookup #183

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/sweep-running-guard in i main 2026-10-18 11:48:49 +00:00
Ägare

A sweep tick that starts while the previous one is still running is now skipped. Overlapping ticks doubled the Mollie calls, for example during 429 slowdowns. A failed run still frees the guard.

reconcile looks up settled payments in two batched inArray queries instead of one query per payment.

Tested: new unit tests for the guard. Typecheck, lint and the full suite pass against Postgres.

Closes #122

A sweep tick that starts while the previous one is still running is now skipped. Overlapping ticks doubled the Mollie calls, for example during 429 slowdowns. A failed run still frees the guard. `reconcile` looks up settled payments in two batched `inArray` queries instead of one query per payment. Tested: new unit tests for the guard. Typecheck, lint and the full suite pass against Postgres. Closes #122
supernaut lade till 1 incheckning 2026-10-18 11:18:19 +00:00
fix(main): run the sweep one at a time and batch the settled lookup
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m24s
56c2efd4bd
A tick that starts while the previous one still runs is skipped. reconcile looks up settled payments with one query pass instead of one per payment.

Closes #122
supernaut sammanfogade incheckning 683072c009 till main 2026-10-18 11:48:49 +00:00
supernaut tog bort grenen fix/sweep-running-guard 2026-10-18 11:48:49 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment!183
Ingen beskrivning angiven.