

common:
  listen_timeout: 30
  stop_on_timeout: False
  try_to_reconnect: True
  reconnect_interval: 5


connections:
  - name: "Clients database"
    listen_timeout: 30
    stop_on_timeout: False
    try_to_reconnect: True
    reconnect_interval: 5
    connection_params:
      dbname: clients
      user: dbuser
      host: postgresql.com
      port: 5432
    channels:
      - name: "client channel"
        handlers:
          - name: "update index in elastic"
            call: path.to.some:callable
            config:
              key: value
              arg: kwarg
          - name: "invalidate cache"
            call: path.to.some:another_callable
            config:
              key: value
              arg: kwarg
      - name: "contracts channel"
        handlers:
          - name: "update index in elastic"
            call: path.to.some:callable
            config:
              key: value
              arg: kwarg
          - name: "invalidate cache"
            call: path.to.some:another_callable
            config:
              key: value
              arg: kwarg



common:
  listen_timeout: 30
  stop_on_timeout: False
  try_to_reconnect: True
  reconnect_interval: 5
  reconnect_attempts: null


connections:
  - name: "Clients database"
    listen_timeout: 30
    stop_on_timeout: False
    try_to_reconnect: True
    reconnect_interval: 5
    connection_params:
      dbname: clients
      user: dbuser
      host: postgresql.com
      port: 5432
    channels:
      - name: "client channel"
        handlers:
          - name: "update index in elastic"
            call: path.to.some:callable
            config:
              key: value
              arg: kwarg
          - name: "invalidate cache"
            call: path.to.some:another_callable
            config:
              key: value
              arg: kwarg
      - name: "contracts channel"
        handlers:
          - name: "update index in elastic"
            call: path.to.some:callable
            config:
              key: value
              arg: kwarg
          - name: "invalidate cache"
            call: path.to.some:another_callable
            config:
              key: value
              arg: kwarg

Add reconnect_attempts setting to example
Add reconnect_attempts setting to example

Signed-off-by: Michal Kuffa <005ee1c97edba97d164343c993afee612ac25a0c@gmail.com>
