polls: don't continuously refresh closed polls and refresh less frequently #472

Merged
Oneric merged 2 commits from Oneric/akkoma-fe:poll-upd-frequency-reduction into develop 2026-01-24 18:30:00 +00:00

2 commits

Author SHA1 Message Date
Oneric
9bfd3936d6 polls: do not fetch updates for closed polls
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
2026-01-14 00:00:00 +00:00
Oneric
8d8e6d979a polls: reduce frequency of update fetches
Thirty seconds is much quicker than any other auto-refreshes in the
interface. Emitting a request for every users and tab with the poll
loaded this frequently can add up to a noteworthy total on the backend.

This is significantly worsened by our backend currently synchronously
fetching and updating the status of remote polls when queried about
while initiating a remote fetch for every incoming request inbetween
the last refetch passing the  age threshold and the first current fetch
suceeding and completing its db transaction.
2026-01-14 00:00:00 +00:00