mirror of
https://github.com/matrix-org/synapse.git
synced 2025-07-21 09:26:13 +00:00
Docstring on WorkerTemplate
This commit is contained in:
parent
576cade649
commit
f647745492
@ -89,6 +89,14 @@ MARKER_FILE_PATH = "/conf/workers_have_been_configured"
|
||||
|
||||
@dataclass
|
||||
class WorkerTemplate:
|
||||
"""
|
||||
A definition of individual settings for a specific worker type.
|
||||
A worker name can be fed into the template in order to generate a config.
|
||||
|
||||
These worker templates can be merged with `merge_worker_template_configs`
|
||||
in order for a single worker to be made from multiple templates.
|
||||
"""
|
||||
|
||||
listener_resources: Set[str] = field(default_factory=set)
|
||||
endpoint_patterns: Set[str] = field(default_factory=set)
|
||||
# (worker_name) -> {config}
|
||||
|
Loading…
x
Reference in New Issue
Block a user