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

Retention policy purge jobs fail if run_background_tasks_on is set to something other than master #9927

Closed
@babolivier

Description

@babolivier

If run_background_tasks_on is set to anything other than master, Synapse will try to run background jobs on a worker, including the message retention policies support's purge jobs. However, these jobs end up calling the purge_history function of the storage layer (in the PurgeEventsStorage class) which doesn't exist on a worker, therefore the jobs fail with AttributeError: 'GenericWorkerSlavedStore' object has no attribute 'purge_history'.

This bug was introduced in #8513

cc @iansinclair

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3(OBSOLETE: use S- labels.) Approved backlog: not yet scheduled, will accept patchesS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions