Skip to content
Snippets Groups Projects
Commit 8e7beba4 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Updating superevent LVAlerts for test and mdc

Update alert code to determine whether the message should go to
the production, test, or mdc superevent nodes.
parent bba55d78
No related branches found
No related tags found
1 merge request!8Superevents
......@@ -33,12 +33,13 @@ def get_xmpp_node_names(event_or_superevent):
# Compile a list of node names
node_names = []
if is_superevent(event_or_superevent):
# TODO: test superevents
is_test = False
if is_test:
superevent_node = 'test_superevent'
else:
superevent = event_or_superevent
if superevent.is_production():
superevent_node = 'superevent'
elif superevent.is_mdc():
superevent_node = 'mdc_superevent'
else:
superevent_node = 'test_superevent'
node_names.append(superevent_node)
elif is_event(event_or_superevent):
# Node name format is group_pipeline or group_pipeline_search
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment