def on_email_messages(self, body, message): logger.debug("on_email_messages: RECEIVED MSG - body: %r" % (body,)) layer_uuid = body.get("layer_uuid") user_id = body.get("user_id") send_email_consumer(layer_uuid, user_id) # Not sure if we need to send ack on this fanout version. message.ack() logger.debug("on_email_messages: finished") self._check_message_limit()
def on_email_messages(self, body, message): # logger.debug("on_email_messages: RECEIVED MSG - body: %r" % (body,)) layer_uuid = body.get("layer_uuid") user_id = body.get("user_id") send_email_consumer(layer_uuid, user_id) # Not sure if we need to send ack on this fanout version. message.ack() logger.info("on_email_messages: finished") self._check_message_limit()