Upgrading Discourse before upgrading plugins causes problems

You should run a rebuild – after a failed upgrade, the container can be in a weird state, where it thinks it is upgraded although the upgrade did not complete.

I also ran into this:

https://meta.discourse.org/t/sending-notifications-is-slow-throws-exceptions/61193?u=fefrei