renewal reminders: stop the hourly sweep from growing with every past checkout #324
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web#324
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
The reminder job asks the identity provider and billing about every account that ever started a checkout, one at a time, every hour.
Why
The list never shrinks. Each account costs two calls with 10 second timeouts. At 1,000 accounts the run can pass its 10 minute abort. Overlapping runs are not guarded. Thresholds are whole days, so hourly adds load and no value.
Failing case
1,000 accounts at 300 ms per call give about 10 minutes per run. A slow billing service makes it longer, and the next tick starts a second run on top.
Fix
scripts/renewal-reminders.mjsto 6 or 24 hours. The first run after each start stays.Done when