Skip to content

Commit

Permalink
Update logging for es-index updates sync call
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieLF committed Apr 2, 2024
1 parent 778df7a commit 8f6519e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions db/python/layers/seqr.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def check_updated_sequencing_group_ids(self, sequencing_group_ids: set[int], es_
)
if sequencing_groups_diff:
messages.append(
'Sequencing groups added to index: ' + ', '.join(sequencing_groups_diff),
f'Sequencing groups added to {es_index_analyses[-1].output}: ' + ', '.join(sequencing_groups_diff),
)

sg_ids_missing_from_index = sequencing_group_id_format_list(
Expand All @@ -408,7 +408,7 @@ async def post_es_index_update(self, session: aiohttp.ClientSession, url: str, p
headers=headers,
)
resp.raise_for_status()
return {f'{post_json["elasticsearchIndex"]} : {resp.status} - {resp.reason}'}
return f'Updated ES index {post_json["elasticsearchIndex"]}: {resp.status} - {resp.reason}'

async def update_es_index(
self,
Expand Down Expand Up @@ -494,7 +494,6 @@ async def update_es_index(
'ignoreExtraSamplesInCallset': True,
}
requests.append(self.post_es_index_update(session, req1_url, post_json, headers))
messages.append(f'Updated ES index {es_index}')

messages.extend(await asyncio.gather(*requests))
return messages
Expand Down

0 comments on commit 8f6519e

Please sign in to comment.