automated terminal push

This commit is contained in:
Your Name
2025-02-07 13:54:56 -05:00
parent 7df2218ea5
commit bbf17c5a7d
3 changed files with 108 additions and 16 deletions

View File

@@ -1,11 +1,8 @@
import stomp
import time
import SullyGnomeRobot
import RestAPIClient
print("## ")
print("## starting > JMS consumer (yankee-sully-channels-monthly)")
print("## ")
class MyListener(stomp.ConnectionListener):
@@ -59,10 +56,6 @@ class MyListener(stomp.ConnectionListener):
RestAPIClient.addDownloadFailure(message.body)
print("## ")
print("## starting > JMS consumer (yankee-sully-channels-monthly)")
print("## ")
conn = stomp.Connection([('osiris.yankee.embanet.online', 61613)])
conn.set_listener('', MyListener())
@@ -71,14 +64,7 @@ conn.connect('admin', 'password', wait=True)
conn.subscribe('/queue/yankee-sully-channels-monthly', id=1, ack='auto', headers={'activemq.prefetchSize': 10})
print("## ")
print("## notification > connected to JMS server (yankee-sully-channels-monthly)")
print("## ")
while True:
pass
time.sleep(1)
conn.disconnect()