worker.yaml.j2 618 B

1234567891011121314151617181920212223242526
  1. # This is a configuration template for a single worker instance, and is
  2. # used by Dockerfile-workers.
  3. # Values will be change depending on whichever workers are selected when
  4. # running that image.
  5. worker_app: "{{ app }}"
  6. worker_name: "{{ name }}"
  7. worker_listeners:
  8. - type: http
  9. {% if using_unix_sockets %}
  10. path: "/run/worker.{{ port }}"
  11. {% else %}
  12. port: {{ port }}
  13. {% endif %}
  14. {% if listener_resources %}
  15. resources:
  16. - names:
  17. {%- for resource in listener_resources %}
  18. - {{ resource }}
  19. {%- endfor %}
  20. {% endif %}
  21. worker_log_config: {{ worker_log_config_filepath }}
  22. {{ worker_extra_conf }}