Expire sessions, tokens, OAuth codes and delivery markers, and flush digests, from each AccountState's own alarm
Inserting a row that must later expire or flush arms the account's alarm for the next due time; the alarm deletes what is due, forgets its locators, emails due digests and re-arms. This replaces four cron jobs that visited every account every five minutes, so idle accounts cost nothing. A one-time cron backfill arms accounts whose rows predate the alarm. Assisted-by: Crush
15 files changed+289−91
Rendering diff…