This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
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.
Fix worker doc for
synapse.app.frontend_proxy
#13451Fix worker doc for
synapse.app.frontend_proxy
#13451Changes from 2 commits
fb5e393
eaa25d8
12877da
f7297ab
78501b3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
As of #6964, it looks like the frontend_proxy is really just a generic_worker in disguise. Should we move the frontend_proxy to the "Historical apps" section below?
(I'm very unfamiliar with the history here, maybe @matrix-org/synapse-core can advise).
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.
There are more "Historical apps", IMO.
synapse/synapse/app/generic_worker.py
Lines 430 to 442 in 6dd7fa1
synapse.app.media_repository
synapse.app.pusher
synapse.app.federation_sender
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.
Yes indeed, there is absolutely no difference between a
frontend_proxy
worker and ageneric_worker
nowadays; we should just get rid of this section.... which makes me realise that
generic_worker
can actually handle requests to^/_matrix/client/(r0|v3|unstable)/keys/upload
, and we should add it to the list up there.Looks like
^/_matrix/client/(api/v1|r0|v3|unstable)/presence/
is already in the list.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.
I am not sure what I should do? IMO a redesign of the docs should not part of this PR.
Moving URLs to
generic_worker
has impact to docker image. Or deprecate three worker types is a bigger change.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.
The only changes we need (for the documentation) are:
frontend_proxy
/_matrix/client/(r0|v3|unstable)/keys/upload
to the list of URLs supported bygeneric_worker
. It is currently supported, but not documented.we may need to update the docker image to match the recommendations from the documentation, but that can be done separately.
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.
I do not see this in this PR. This is a bit more.
frontend_proxy
needs to be deprecated/_matrix/client/(r0|v3|unstable)/keys/upload
, it needs an extra paragraph for the config paramworker_main_http_uri
, what is needed for the URLIt would make sense to create a PR for depracte all of the redundant workers:
synapse.app.media_repository
synapse.app.pusher
synapse.app.federation_sender
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.
I can't insist, but it just doesn't seem worth making minor corrections to text that is fundamentally outdated.
I don't think we need a particular deprecation notice.
frontend_proxy
is just another example of the redundant workers that are covered under Historical apps, much likeclient_reader
andevent_creator
(which were removed in #7969).Oh bother, that's true. Yes, we should really move the existing text on
worker_main_http_uri
to the general Worker configuration section. (and probably mention it again next to/_matrix/client/(r0|v3|unstable)/keys/upload
.media_repository
isn't (yet) redundant, afaik: ageneric_worker
cannot handle the/media
endpoints. But in general I think it makes more sense to consider each worker app in turn, in separate PRs. #10441 tracks this work.