Skip to content

Commit

Permalink
fix? avoid 'unhandled messages'
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Dec 4, 2024
1 parent ae8e9fc commit f770082
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions share/search/index_strategy/elastic8.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ def pls_handle_messages_chunk(self, messages_chunk):
status_code=_status,
error_text=str(_response_body),
)
for _message_id in _action_tracker.remaining_done_messages():
yield messages.IndexMessageResponse(
is_done=True,
index_message=messages.IndexMessage(messages_chunk.message_type, _message_id),
status_code=HTTPStatus.OK.value,
error_text=None,
)
self.after_chunk(messages_chunk, _indexnames)

# abstract method from IndexStrategy
Expand Down

0 comments on commit f770082

Please sign in to comment.