Skip to content

Commit

Permalink
Fix monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Nov 19, 2023
1 parent ee61f88 commit 899359e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive_query_log/monitoring/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _get_statistics(
if key in _statistics_cache:
return _statistics_cache[key]

document.index().refresh()
document.index().refresh(using=config.es.client)
stats = document.index().stats(using=config.es.client)
last_modified_response = (
document.search(using=config.es.client)
Expand Down Expand Up @@ -97,7 +97,7 @@ def _get_processed_progress(
if key in _progress_cache:
return _progress_cache[key]

document.index().refresh()
document.index().refresh(using=config.es.client)
search = document.search(using=config.es.client)
total = search.extra(track_total_hits=True).execute().hits.total.value
search_processed = search.filter(
Expand Down

0 comments on commit 899359e

Please sign in to comment.