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

Fix harmless exception in port DB script #15814

Merged
merged 2 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/15814.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix harmless exceptions being printed when running the port DB script.
3 changes: 3 additions & 0 deletions synapse/_scripts/synapse_port_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,9 @@ def main() -> None:
sys.stderr.write("Database must use the 'psycopg2' connector.\n")
sys.exit(3)

# Don't run the background tasks that get started by the data stores.
hs_config["run_background_tasks_on"] = "some_other_process"

config = HomeServerConfig()
config.parse_config_dict(hs_config, "", "")

Expand Down