Skip to content

Commit

Permalink
Retry with routing key without the # wildcard.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdaily committed Nov 12, 2024
1 parent f427f15 commit 206fbe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion banzai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def on_message(self, body, message):
queue_name = self.runtime_context.LARGE_WORKER_QUEUE
else:
queue_name = self.runtime_context.CELERY_TASK_QUEUE_NAME
logger.info(f'Processing {body["filename"]} on queue {queue_name}. Routing key: {queue_name}', extra_tags={'filename': body['filename']})
process_image.apply_async(args=(body, vars(self.runtime_context)),
queue=queue_name)
queue=queue_name,
routing_key=queue_name)
message.ack() # acknowledge to the sender we got this message (it can be popped)


Expand Down

0 comments on commit 206fbe3

Please sign in to comment.