mirror of
https://github.com/matrix-org/synapse.git
synced 2025-08-05 00:36:23 +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
|
@dataclass
|
||||||
class WorkerTemplate:
|
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)
|
listener_resources: Set[str] = field(default_factory=set)
|
||||||
endpoint_patterns: Set[str] = field(default_factory=set)
|
endpoint_patterns: Set[str] = field(default_factory=set)
|
||||||
# (worker_name) -> {config}
|
# (worker_name) -> {config}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user