Skip to content

Commit

Permalink
fix(k8s): adding timeout option (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-milosa committed Jan 22, 2024
1 parent c112389 commit 5842d80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
logger = get_logger()

logger.info("Initializing elastic client with url: %s", args.elastic_url)
client = Elasticsearch(args.elastic_url, request_timeout=args.timeout)
client = Elasticsearch(args.elastic_url, timeout=args.timeout, retry_on_timeout=True, max_retries=3)

indices = [i for i in list(client.indices.get(index=args.index_pattern)) if not i.startswith(".")]

Expand Down

0 comments on commit 5842d80

Please sign in to comment.