in backend-printing/helper/backend_print.py [0:0]
def _send_message_to_storage_queue(self, print_messages):
"""Send the print messages to the storage queue.
Args:
print_messages (list): List of print messages
"""
try:
for print_message in print_messages:
StorageQueueClient().send_message(message=print_message)
except Exception as e:
return {
"status": "error",
"message": "Error occurred while sending message",
}