element-hq / element-hq/synapse

Bail during start-up if there are old background updates.

Open
#16,397 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#16397](https://github.com/matrix-org/synapse/pull/16397).

---

This is a basic implementation to enforce that some old background updates have run.

My hope is that this could be used to avoid future situations like #16192. This would fix #16047 in a simplistic manner and doesn't attempt to differentiate between different types of background updates.

This still would require us to do thinking about what old updates are now required, but I think it would fix the issue where we have to continually create background jobs due to dependencies.

## TODO

* [x] Enforce that `ordering` is filled in (non-nullable).
* [x] ~~Maybe try to fix that `BACKGROUND_UPDATES_COMPAT_VERSION < last full schema dump`?~~
* [x] Documentation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.