Skip to content

Commit

Permalink
increase client side timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tombokombo authored Aug 14, 2023
1 parent 811efbc commit 998c239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prometheus_es_exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def updateConfigs(item):
while True:
try:
log.info(f"Start listening for {customResource}")
for ev in watch.stream(customObjectsApi.list_cluster_custom_object, group, vers, customResource, timeout_seconds = 0, _request_timeout = 60):
for ev in watch.stream(customObjectsApi.list_cluster_custom_object, group, vers, customResource, timeout_seconds = 0, _request_timeout = (30, 24*3600)):
item = ev["object"]
namespace = item["metadata"]["namespace"]
name = item["metadata"]["name"]
Expand Down Expand Up @@ -590,7 +590,7 @@ def rolloverAlias(item):
while True:
try:
log.info(f"Start listening for {customResource}")
for ev in watch.stream(customObjectsApi.list_cluster_custom_object, group, vers, customResource, timeout_seconds = 0, _request_timeout = 60):
for ev in watch.stream(customObjectsApi.list_cluster_custom_object, group, vers, customResource, timeout_seconds = 0, _request_timeout = (30, 24*3600)):
item = ev['object']
item_resource_version = item['metadata']['resourceVersion']
templateName = item['spec']['templateName']
Expand Down

0 comments on commit 998c239

Please sign in to comment.