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
b299e6cd
Commit
b299e6cd
authored
12 years ago
by
Brian Moe
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git+ssh://draco.phys.uwm.edu/home/bmoe/gracedb
parents
30974fae
f1477804
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gracedb/buildVOEvent.py
+4
-3
4 additions, 3 deletions
gracedb/buildVOEvent.py
gracedb/views.py
+8
-4
8 additions, 4 deletions
gracedb/views.py
settings/default.py
+3
-1
3 additions, 1 deletion
settings/default.py
with
15 additions
and
8 deletions
gracedb/buildVOEvent.py
+
4
−
3
View file @
b299e6cd
...
...
@@ -178,6 +178,7 @@ def submitToSkyalert(gevent, validate_only=False):
# the server that will handle the submit request
url
=
"
http://skyalert.org/submit/
"
url
=
"
https://betelgeuse.ligo.caltech.edu:8000/submit/
"
url
=
"
http://betelgeuse.ligo.caltech.edu/submit/
"
# choose 'dryrun' for validation and 'author' for authoring
dict
[
'
checker
'
]
=
'
dryrun
'
...
...
@@ -190,11 +191,11 @@ def submitToSkyalert(gevent, validate_only=False):
dict
[
'
checker
'
]
=
'
author
'
# Skyalert username and password
dict
[
'
username
'
]
=
'
brian
'
dict
[
'
password
'
]
=
'
man8men.
'
dict
[
'
username
'
]
=
'
system
'
dict
[
'
password
'
]
=
'
OPV537
'
# This is the short name for the stream, must match credentials and event!
dict
[
'
streamName
'
]
=
'
gracedb
'
dict
[
'
streamName
'
]
=
'
LIGO
'
# Should alerts be run once the event is ingested?
dict
[
'
doRules
'
]
=
'
on
'
...
...
This diff is collapsed.
Click to expand it.
gracedb/views.py
+
8
−
4
View file @
b299e6cd
...
...
@@ -87,21 +87,25 @@ def skyalert(request, graceid):
skyalert_response
=
""
# XXX umm. don't we want to know if this email fails silently?
mail_admins
(
"
SkyAlert Submission Error
"
,
"
Event: %s
\n
Excption: %s
\n
"
%
(
graceid
,
e
),
"
Event: %s
\n
Exc
e
ption: %s
\n
"
%
(
graceid
,
e
),
fail_silently
=
True
)
flashmessage
=
None
if
skyalert_response
.
find
(
"
Success
"
)
>=
0
:
urlpat
=
re
.
compile
(
'
https://[^ ]*
'
)
urlpat
=
re
.
compile
(
'
https
?
://[^ ]*
'
)
match
=
urlpat
.
search
(
skyalert_response
)
if
match
:
message
=
"
Submitted to Skyalert: %s
"
%
match
.
group
()
url
=
match
.
group
()
flashmessage
=
'
Submitted to Skyalert: %s
'
%
url
message
=
'
Submitted to Skyalert: <a href=
"
%s
"
>%s</a>
'
%
(
url
,
url
)
else
:
message
=
"
SkyAlert submission problem. Cannot parse SkyAlert response.
"
# XXX umm. don't we want to know if this email fails silently?
mail_admins
(
"
SkyAlert response parsing problem
"
,
"
Event: %s
\n
SkyAlert Response: %s
\n
"
%
(
graceid
,
skyalert_response
),
fail_silently
=
True
)
elif
skyalert_response
.
find
(
'
already
'
)
>=
0
:
elif
(
skyalert_response
.
find
(
'
already
'
)
>=
0
)
or
(
skyalert_response
.
find
(
'
Duplicate
'
)
>=
0
)
:
message
=
"
Event already submitted to SkyAlert
"
createLogEntry
=
False
elif
skyalert_response
:
...
...
@@ -110,7 +114,7 @@ def skyalert(request, graceid):
"
Event: %s
\n
SkyAlert Response: %s
\n
"
%
(
graceid
,
skyalert_response
),
fail_silently
=
True
)
request
.
session
[
'
flash_msg
'
]
=
message
request
.
session
[
'
flash_msg
'
]
=
flashmessage
or
message
if
createLogEntry
:
logentry
=
EventLog
(
event
=
event
,
issuer
=
request
.
ligouser
,
comment
=
message
)
...
...
This diff is collapsed.
Click to expand it.
settings/default.py
+
3
−
1
View file @
b299e6cd
...
...
@@ -14,7 +14,7 @@ MANAGERS = ADMINS
ALERT_EMAIL_FROM
=
"
GraCEDb <gracedb@archie.phys.uwm.edu>
"
ALERT_EMAIL_TO
=
[
"
gracedb@listserv.ligo.org
"
,
#
"gracedb@listserv.ligo.org",
]
ALERT_EMAIL_BCC
=
[
]
...
...
@@ -32,6 +32,8 @@ XMPP_ALERT_CHANNELS = [
'
test_cwb
'
,
'
cbc_lowmass
'
,
'
test_lowmass
'
,
'
cbc_highmass
'
,
'
test_highmass
'
,
'
test_grb
'
,
]
...
...
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