Skip to content

Commit

Permalink
fix: fix bug in queue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Oct 4, 2023
1 parent fadac9a commit a2f231a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ def consume(self):
# documents
document = self.processor.from_dict(item)
_id = document.pop("_id")
result = self.es_client.index(index=self.index_name, body=document, id=_id)
logger.info(document)
logger.info(self.index_name)
result = self.es_client.index(
index=self.index_name, document=document, id=_id
)
logger.info(
"Received Redis update for document: %s, indexation result: %s",
_id,
Expand Down

0 comments on commit a2f231a

Please sign in to comment.