| Commit message (Collapse) | Author | Files | Lines |
|
|
|
Use failure.Failure to recover our failure, which will give us a useful
stacktrace, unlike the rethrown exception.
|
|
|
|
pass the right arguments to the errback handler
Fixes "TypeError('eb() takes exactly 2 arguments (1 given)',)"
|
|
|
|
This is never used; let's remove it to stop confusing things.
|
|
The @measure_func annotations rely on the wrapped function respecting the
logcontext rules. Add the necessary yields to make this work.
|
|
Fixes #2706
|
|
|
|
so that the right thing happens on workers.
|
|
... to stop us doing the cache cleanup jobs on the master.
|
|
This avoids the scenario where we have four different PreviewUrlResources
configured on a single app, each of which have their own caches and cache
clearing jobs.
|
|
Fixes https://github.com/matrix-org/synapse/issues/2554
|
|
|
|
remove those that aren't used at all, and replace the ones that don't have
builders with simple getters rather than dynamically-generated methods.
|
|
Create the url_cache index on local_media_repository as a background update, so
that we can detect whether we are on sqlite or not and create a partial or
complete index accordingly.
To avoid running the cleanup job before we have built the index, add a bailout
which will defer the cleanup if the bg updates are still running.
Fixes https://github.com/matrix-org/synapse/issues/2572.
|