Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Coughlin
GraceDB Server
Commits
7690fb97
Commit
7690fb97
authored
7 years ago
by
Tanner Prestegard
Committed by
GraceDB
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SIMDB: small update to gracedb/alert.py for hardware injections
parent
cc6ac579
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/events/alert.py
+8
-0
8 additions, 0 deletions
gracedb/events/alert.py
with
8 additions
and
0 deletions
gracedb/events/alert.py
+
8
−
0
View file @
7690fb97
...
...
@@ -221,6 +221,9 @@ def issueEmailAlert(event, event_url):
if
event
.
search
and
event
.
search
.
name
==
'
MDC
'
:
return
if
event
.
pipeline
.
name
==
'
HardwareInjection
'
:
return
# Gather Recipients
if
event
.
group
.
name
==
'
Test
'
:
fromaddress
=
settings
.
ALERT_TEST_EMAIL_FROM
...
...
@@ -296,6 +299,10 @@ def issuePhoneAlert(event):
make_twilio_calls
(
event
,
phoneRecips
,
"
create
"
)
def
issueXMPPAlert
(
event
,
location
,
alert_type
=
"
new
"
,
description
=
""
,
serialized_object
=
None
):
# XXX Let's bail if this is a hardware injection.
if
event
.
pipeline
.
name
==
'
HardwareInjection
'
:
return
# Check settings switch for turning off XMPP alerts
if
not
settings
.
SEND_XMPP_ALERTS
:
...
...
@@ -360,6 +367,7 @@ def issueXMPPAlert(event, location, alert_type="new", description="", serialized
[
"
lvalert_send
"
,
"
--server=%s
"
%
server
,
"
--file=-
"
,
"
--resource=simdb_sender
"
,
"
--node=%s
"
%
nodename
,
],
stdin
=
PIPE
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment