1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] elasticsearch-py add delay between retries

Discussão em 'Python' iniciado por Stack, Setembro 12, 2024.

  1. Stack

    Stack Membro Participativo

    I'm instantiating a python elasticsearch client as follows

    self.es = Elasticsearch(
    hosts=ELASTICSEARCH_URL,
    timeout=5,
    ignore_unavailable=True,
    # connection_retries=Retry(
    # total=5,
    # backoff_factor=1.1,
    # status_forcelist=[429, 502, 503, 504],
    # raise_on_status=False,
    # )
    )


    I want to introduce a retry delay between retries (and ideally with a backoff factor). Any ideas how to achieve this?

    Continue reading...

Compartilhe esta Página