-
Notifications
You must be signed in to change notification settings - Fork 404
Refactor the configure_workers_and_start.py script used internally by Complement.
#16803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b39a50a
Remove obsolete `"app"` from worker templates
reivilibre a22eb7d
Convert worker templates into dataclass
reivilibre ba3b6a4
Use a lambda for the worker name rather than search and replace later
reivilibre 67d4fc8
Collapse WORKERS_CONFIG by removing entries with defaults
reivilibre 94a85b3
Convert listener_resources and endpoint_patterns to Set[str]
reivilibre 26073fa
Tweak comments
reivilibre 8b74639
Add `merge_into`
reivilibre f38297b
Remove special logic for adding stream_writers: just make it part of …
reivilibre 7d8824e
Rename function to add_worker_to_instance_map given reduction of scope
reivilibre f49dbc7
Add `sharding_allowed` to the WorkerTemplate rather than having a sep…
reivilibre 3bb21a9
Use `merge_into` when adding workers to the shared config
reivilibre fbafde8
Promote mark_filepath to constant
reivilibre 321d359
Add a --generate-only option
reivilibre 259a808
Docstring on WorkerTemplate
reivilibre 3a46cf0
Fix comment and mutation bug on merge_worker_template_configs
reivilibre 2f1d727
Update comment on `merged`
reivilibre ad4bb0e
Tweak `instantiate_worker_template`, both in name, description and va…
reivilibre 2ff1de3
Newsfile
reivilibre 29541fd
Move `stream_writers` to their own field in the WorkerTemplate
reivilibre c91ab4b
Remove `merge_into` and just have `merged` which copies inputs to avo…
reivilibre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, the documentation still thinks that you should use
synapse.app.media_repositoryto configure this: https://element-hq.github.io/synapse/latest/workers.html#synapseappmedia_repositoryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, that's a headscratcher.
Complement does test the media endpoints and the tests pass.......?
But looking at
synapse/synapse/config/repository.py
Line 129 in f95cfd8
synapse.app.media_repositoryseems to matter), you'd expect this to break things...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⇒ #16826