This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
MSC1763 retention purge_jobs fail to run when run_background_tasks_on is configured to be a synapse.app.generic_worker #13604
Labels
A-Message-Retention-Policies
Issues related to Synapse's support of MSC1763 (message retention policies)
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
m.room.retention state events are correctly filtering out events in the endpoints, but the purge jobs aren't correctly running and the events are still in the database.
Seeing this error log which points pretty clearly at the issue
{"log":"[purge] failed","namespace":"synapse.handlers.pagination","level":"ERROR","time":1661238458.09,"request":"_purge_history-0","server_name":"beeper.com","exc_type":"AttributeError","exc_value":"'GenericWorkerSlavedStore' object has no attribute 'purge_history'"}
Can we just add
PurgeEventsStore
toGenericWorkerSlavedStore
or can only the main process purge events? 🤔Steps to reproduce
Relevant config:
so it's just the default daily job.
synapse-background-worker-0
is the hostname of asynapse.app.generic_worker
process configured to run background jobs.Homeserver
beeper.com
Synapse Version
1.64.0 (Beeper fork)
Installation Method
No response
Platform
Running in containers on Kubernetes.
Relevant log output
The text was updated successfully, but these errors were encountered: