Sending messages to activemq using stomp.py is not displayed in the background

using stomp.py to send messages to activemq is not displayed in the background

-sharp queue
def send_to_queue(msg):
    conn = stomp.Connection10([("192.168.0.143", 61613)])
    conn.start()
    conn.connect("admin", "admin")
    conn.send(queue_name, msg)
    conn.disconnect()

clipboard.png

there is also a strange problem that if the send and receive methods are called continuously, the message will be received and printed, but if the send is performed first, the message will not be received

-sharp-sharp
def receive_from_queue():
    conn = stomp.Connection10([("192.168.0.143", 61613)])
    listener = SampleListener(conn)
    conn.set_listener(listener_name, listener)
    conn.start()
    conn.connect("admin", "admin")
    conn.subscribe(queue_name)
    time.sleep(1)  -sharp secs
    conn.unsubscribe(queue_name)
    conn.disconnect()
Apr.06,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be6bed-30d69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be6bed-30d69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?