Avoid errors with worker replica count

This commit is contained in:
Alexander "Ace" Olofsson 2021-04-14 06:09:55 +02:00
parent 0c79b61ce1
commit 6e45fb9e18
No known key found for this signature in database
GPG key ID: D439C9470CB04C73

View file

@ -23,7 +23,7 @@ data:
{{ $name }}.worker: |
worker_app: "synapse.app.{{ (not (not $config.generic)) | ternary "generic_worker" $worker }}"
{{- if $config.name -}}
{{- if (ne $config.replicaCount 1) -}}
{{- if (gt ($config.replicaCount | int) 1) -}}
{{- fail "Replica count must be 1 if a worker has a unique name." -}}
{{- end }}
worker_name: {{ $config.name }}