Skip to content

Commit

Permalink
Log response in wait_for_reindex (#5113)
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc authored Oct 29, 2024
1 parent e41561b commit c96e1af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions catalog/dags/common/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def wait_for_reindex(
es_conn = ElasticsearchPythonHook(hosts=[es_host]).get_conn

response = es_conn.tasks.get(task_id=task_id)
logger.info(response)

count = response.get("task", {}).get("status", {}).get("total")
if expected_docs and count != expected_docs:
Expand Down

0 comments on commit c96e1af

Please sign in to comment.