9 Commits
Author SHA1 Message Date
MrAlders0n ee4ee046c5 fix(alerts): hold rate-limited pushes without counting an attempt
A rate_limited item or a whole-call 429 now holds only the push until the
relay's wait (the item's, else Retry-After, else a minute), and never
counts toward MaxAttempts or shrinks the batch. Batches go back to 100
with a 30s call limit, matching the relay.
2026-11-18 06:09:12 -05:00
MrAlders0n 275c532e23 fix(alerts): retry email and push apart, and fit push batches to the relay
Each channel now has its own attempts, delay and done mark, so a failing
or rate-limited push no longer holds back or drops unsent mail. Push
batches drop to 20 with a 50s call limit, a batch shrinks after each
failure, and a call that times out leaves the rest for the next pass.
2026-11-18 06:00:59 -05:00
MrAlders0n 90c2ece473 feat(alerts): email and push channels through the push server
Alerts go out by email, by push or both, as each user chooses. Push is
sent through the push server with the operator's Push ID and secret and
sealed per device, so this server no longer holds a Firebase key. The
outbox tracks each channel, so a retry of one never repeats the other.
2026-11-17 20:22:51 -05:00
MrAlders0n 2e87fb7a51 Send alert mail for finished passes only 2026-11-15 08:10:17 -05:00
MrAlders0n fdc05a489b Send one alert mail per user and pass 2026-11-15 03:14:23 -05:00
MrAlders0n 53a5a81ce9 Track push delivery per device 2026-11-15 03:11:00 -05:00
MrAlders0n 5e8376581d Mark alert mail delivered after it is sent 2026-11-15 03:07:23 -05:00
MrAlders0n c8f53c9d23 Add ids, a polled flag and reason codes to alert targets 2026-11-15 02:23:18 -05:00
MrAlders0n 22b10d18d5 Deliver alerts by email or push 2026-11-15 02:02:21 -05:00