summary refs log tree commit diff
path: root/synapse/util/async_helpers.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2025-01-30 20:48:12 +0000
committerGitHub <noreply@github.com>2025-01-30 20:48:12 +0000
commitac1bf682ff012ee8af5153318eec5d25ed786e90 (patch)
treefcd293317aec791ec3d39839d9f93dcc447b1079 /synapse/util/async_helpers.py
parentRaise an error if someone is using an incorrect suffix in a config duration s... (diff)
downloadsynapse-ac1bf682ff012ee8af5153318eec5d25ed786e90.tar.xz
Allow (un)block_room storage functions to be called on workers (#18119)
This is so workers can call these functions.

This was preventing the [Delete Room Admin
API](https://element-hq.github.io/synapse/latest/admin_api/rooms.html#version-2-new-version)
from succeeding when `block: true` was specified. This was because we
had `run_background_tasks_on` configured to run on a separate worker.

As workers weren't able to call the `block_room` storage function before
this PR, the (delete room) task failed when taken off the queue by the
worker.
Diffstat (limited to 'synapse/util/async_helpers.py')
0 files changed, 0 insertions, 0 deletions