Skip to content

Commit

Permalink
daemon: ack messages we ignore on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Feb 15, 2021
1 parent 6b0b9e9 commit 1927578
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion share/search/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,15 @@ def iterate_once(self, stop_event):
continue

if messages_by_id:
# worth noting but not stopping
# worth noting...
logger.warning(
'IncomingMessageLoop: action generator skipped some target_ids!\ntarget_id_chunk: %s\nleftover_messages_by_id: %s',
target_id_chunk,
messages_by_id,
)
# ...but not stopping
for message in messages_by_id.values():
message.ack()

logger.info('%sPrepared %d docs to be indexed in %.02fs', self.log_prefix, success_count, time.time() - start)

Expand Down

0 comments on commit 1927578

Please sign in to comment.