Skip to content

Commit 76c4e22

Browse files
author
Daniel Abercrombie
authored
Merge pull request #130 from vkuznet/master
Switch to CMSMonitoring StompAMQ
2 parents 475f896 + ad95f56 commit 76c4e22

3 files changed

Lines changed: 8 additions & 39 deletions

File tree

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
install_requires=[
2121
'cmstoolbox>=0.12.0',
22+
'CMSMonitoring',
2223
'more-itertools<6.0.0',
2324
'cherrypy<18.0.0',
2425
'mako',

workflowmonit/sendToMonit.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from Queue import Queue
1212

1313
import yaml
14-
from workflowmonit.stompAMQ import stompAMQ
14+
from CMSMonitoring.StompAMQ import StompAMQ
1515
import workflowmonit.workflowCollector as wc
1616
import workflowmonit.alertingDefs as ad
1717

@@ -240,12 +240,12 @@ def sendDoc(cred, docs):
240240
return []
241241

242242
try:
243-
amq = stompAMQ(
244-
None, # username
245-
None, # password
246-
cred['producer'],
247-
cred['topic'],
248-
# default [('agileinf-mb.cern.ch', 61213)]
243+
amq = StompAMQ(
244+
username = None,
245+
password = None,
246+
producer = cred['producer'],
247+
topic = cred['topic'],
248+
validation_schema = None,
249249
host_and_ports=[
250250
(cred['hostport']['host'], cred['hostport']['port'])],
251251
logger=logger,

workflowmonit/stompAMQ.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)