Automatically clean up push endpoints #805

Closed
opened 2025-04-26 19:30:15 +00:00 by Jade · 1 comment
Owner

Currently, push notification endpoints are completely unlinked to sessions. This means they don't ever get cleaned up, and it's common for old accounts to build up a large amount of 'dead' endpoints that result in warnings/errors in the server log.
Currently, the only way to clean these up is to use one of the legacy element mobile apps and manually delete push endpoints.

Two things that could be done here:

  • Start linking push endpoints to sessions, to allow automatic deletion when a session is deleted
  • Start tracking push endpoint errors, add admin commands to delete erroring or all push endpoints, and figure out a way to expose this to non-admins (HTML UI?)
Currently, push notification endpoints are completely unlinked to sessions. This means they don't ever get cleaned up, and it's common for old accounts to build up a large amount of 'dead' endpoints that result in warnings/errors in the server log. Currently, the only way to clean these up is to use one of the legacy element mobile apps and manually delete push endpoints. Two things that could be done here: - [ ] Start linking push endpoints to sessions, to allow automatic deletion when a session is deleted - [ ] Start tracking push endpoint errors, add admin commands to delete erroring or all push endpoints, and figure out a way to expose this to non-admins (HTML UI?)
nex added this to the 0.5.0-old milestone 2025-04-30 15:28:10 +00:00
Contributor

Start linking push endpoints to sessions, to allow automatic deletion when a session is deleted

I believe a session can request a new endpoint (e.g. changing push providers or renewing expired ones), and I've seen this part of the process causing massive backlogging. So maybe automatic deletion should be extended to all endpoints of a session except for the latest one(s)

Start tracking push endpoint errors, add admin commands to delete erroring or all push endpoints, and figure out a way to expose this to non-admins (HTML UI?)

Something like !admin query pusher flush-pushers -a would be nice as a start :)

> Start linking push endpoints to sessions, to allow automatic deletion when a session is deleted I believe a session can request a new endpoint (e.g. changing push providers or renewing expired ones), and I've seen this part of the process causing massive backlogging. So maybe automatic deletion should be extended to all endpoints of a session except for the latest one(s) > Start tracking push endpoint errors, add admin commands to delete erroring or all push endpoints, and figure out a way to expose this to non-admins (HTML UI?) Something like `!admin query pusher flush-pushers -a` would be nice as a start :)
Jade closed this issue 2026-04-05 20:34:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity#805
No description provided.