Avoid errors with worker replica count
This commit is contained in:
parent
0c79b61ce1
commit
6e45fb9e18
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue