Lock every cron job that moves money, and run two pods

Featurekamolos
Shipped
September 4, 2026 at 9:19 PM UTC
Author
Kamo
Commit
a8bb449

KamoLOS ran one pod and its ten cron jobs were correct only because of it. There is no ShedLock anywhere on this platform, so a second replica would have run each of them twice: AutoDebitRunJob DEBITS BORROWERS' BANK ACCOUNTS InterestAccrualJob accrues interest onto live loans — twice is interest charged twice StatementGenerationJob two statements for one period ReminderDispatchJob two payment reminders YearEndTaxJob two filings' worth of paperwork per borrower plus offer expiry, delinquency, cooling-off advance, reminder scheduling and reconciliation Each now takes a named lease through SingletonTaskRunner before doing anything. **************** is deliberately NOT locked. It downloads the OFAC SDN list and replaces a Set held in this pod's own memory, so it has to run everywhere — locking it would leave every pod but the leaseholder screening applicants against an EMPTY sanctions list, which is worse than the duplication it would prevent. replicas 1 -> 2.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing