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
taigrrcommitted parent 46fe7c84ef1b2904aae2b2f0d9082ab851c25824c6abdb3Browse files
15 files changed+289−91

Rendering diff…