Skip to content

Commit

Permalink
fix model reference
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Nov 8, 2023
1 parent c02449a commit 6165fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/queue/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def safely_respond(self, model: Model) -> List[schemas.Message]:
if messages_with_queues:
logger.debug(f"About to respond to: ({messages_with_queues})")
try:
responses = model.respond([schemas.Message(**{**json.loads(message.body), **{"model_name": self.model.model_name}}) for message, queue in messages_with_queues])
responses = model.respond([schemas.Message(**{**json.loads(message.body), **{"model_name": model.model_name}}) for message, queue in messages_with_queues])
except Exception as e:
logger.error(e)
self.delete_messages(messages_with_queues)
Expand Down

0 comments on commit 6165fdc

Please sign in to comment.