automated terminal push
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user