Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 289ce3b

Browse files
authored
Fix harmless exception in port DB script (#15814)
The port DB script would try and run database background tasks, which could fail if the data they acted on was in the process of being ported. These exceptions were non fatal. Fixes #15789
1 parent 6c749c5 commit 289ce3b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changelog.d/15814.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix harmless exceptions being printed when running the port DB script.

synapse/_scripts/synapse_port_db.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,9 @@ def main() -> None:
13691369
sys.stderr.write("Database must use the 'psycopg2' connector.\n")
13701370
sys.exit(3)
13711371

1372+
# Don't run the background tasks that get started by the data stores.
1373+
hs_config["run_background_tasks_on"] = "some_other_process"
1374+
13721375
config = HomeServerConfig()
13731376
config.parse_config_dict(hs_config, "", "")
13741377

0 commit comments

Comments
 (0)