summary refs log tree commit diff
path: root/synapse/util/distributor.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use `ParamSpec` in a few places (#12667)David Robertson2022-05-091-6/+23
|
* Add most missing type hints to synapse.util (#11328)Patrick Cloke2021-11-161-5/+6
|
* Add types to synapse.util. (#10601)reivilibre2021-09-101-11/+12
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-1/+4
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Allow spam-checker modules to be provide async methods. (#8890)David Teller2020-12-111-5/+2
| | | | Spam checker modules can now provide async methods. This is implemented in a backwards-compatible manner.
* Remove some unused distributor signals (#8216)Patrick Cloke2020-09-091-42/+8
| | | | | Removes the `user_joined_room` and stops calling it since there are no observers. Also cleans-up some other unused signals and related code.
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-2/+2
|
* Convert device handler to async/await (#7871)Patrick Cloke2020-07-171-2/+26
|
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-091-1/+1
|
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-1/+1
|
* Run Black. (#5482)Amber Brown2019-06-201-17/+12
|
* comment about user_joined_roomRichard van der Hoff2019-05-141-0/+1
|
* Make Distributor run its processes as a background processRichard van der Hoff2018-07-181-26/+18
| | | | | | | | | | | This is more involved than it might otherwise be, because the current implementation just drops its logcontexts and runs everything in the sentinel context. It turns out that we aren't actually using a bunch of the functionality here (notably suppress_failures and the fact that Distributor.fire returns a deferred), so the easiest way to fix this is actually by simplifying a bunch of code.
* Run things as background processesRichard van der Hoff2018-07-181-0/+4
| | | | | | | | This fixes #3518, and ensures that we get useful logs and metrics for lots of things that happen in the background. (There are certainly more things that happen in the background; these are just the common ones I've found running a single-process synapse locally).
* Remove preserve_context_over_{fn, deferred}Richard van der Hoff2017-11-141-15/+7
| | | | | Both of these functions ae known to leak logcontexts. Replace the remaining calls to them and kill them off.
* Remove registered_users from the distributor.Mark Haines2016-06-171-4/+0
| | | | | | | | | | The only place that was observed was to set the profile. I've made it so that the profile is set within store.register in the same transaction that creates the user. This required some slight changes to the registration code for upgrading guest users, since it previously relied on the distributor swallowing errors if the profile already existed.
* Move all the wrapper functions for distributor.fireMark Haines2016-04-081-1/+21
| | | | | | | Move the functions inside the distributor and import them where needed. This reduces duplication and makes it possible for flake8 to detect when the functions aren't used in a given file.
* Fix up logcontextsErik Johnston2016-02-081-6/+9
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Make distributer.fire work as it didErik Johnston2015-05-121-20/+30
|
* Fix up leak. Add warnings.Erik Johnston2015-05-081-24/+21
|
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Supply auth_chain along with current state in '/state/', fetch auth events ↵Mark Haines2014-12-181-1/+1
| | | | from a remote server if we are missing some of them
* Replace distributor deferred list, with a simple for loop until I understand ↵Mark Haines2014-12-181-6/+6
| | | | why the former breaks and the latter doesn't
* Add a few missing yields, Move deferred lists inside PreserveLoggingContext ↵Mark Haines2014-11-201-19/+24
| | | | because they don't interact well with the logging contexts
* Fix pep8 warningsMark Haines2014-10-301-1/+2
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Allow optional non-suppression of exceptions through the DistributorPaul "LeoNerd" Evans2014-09-031-4/+13
|
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+108