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
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
53019718
Commit
53019718
authored
1 year ago
by
Alexander Pace
Browse files
Options
Downloads
Patches
Plain Diff
optionally turn off igwn-alerts to *_{search} topics
parent
8ea3689f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!197
optionally turn off igwn-alerts to *_{search} topics
Pipeline
#598587
passed
1 year ago
Stage: test
Stage: branch
Stage: latest
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/settings/base.py
+7
-0
7 additions, 0 deletions
config/settings/base.py
gracedb/alerts/xmpp.py
+1
-1
1 addition, 1 deletion
gracedb/alerts/xmpp.py
with
8 additions
and
1 deletion
config/settings/base.py
+
7
−
0
View file @
53019718
...
...
@@ -150,6 +150,13 @@ SEND_MATTERMOST_ALERTS = False
# IGWN_ALERT_GROUP environment variable.
DEFAULT_IGWN_ALERT_GROUP
=
'
lvalert-dev
'
# enable/disable sending alerts to topics that have the search tag
# for g/e-events. default to false, so only send to {group}_{pipeline}
SEND_TO_SEARCH_TOPICS
=
parse_envvar_bool
(
get_from_env
(
'
IGWN_ALERT_SEARCH_TOPICS
'
,
fail_if_not_found
=
False
,
default_value
=
"
false
"
)
)
# overseer timeout:
OVERSEER_TIMEOUT
=
float
(
get_from_env
(
'
IGWN_ALERT_OVERSEER_TIMEOUT
'
,
fail_if_not_found
=
False
,
default_value
=
0.1
))
...
...
This diff is collapsed.
Click to expand it.
gracedb/alerts/xmpp.py
+
1
−
1
View file @
53019718
...
...
@@ -48,7 +48,7 @@ def get_xmpp_node_names(event_or_superevent):
gp_node
=
"
{group}_{pipeline}
"
.
format
(
group
=
event
.
group
.
name
,
pipeline
=
event
.
pipeline
.
name
).
lower
()
node_names
.
append
(
gp_node
)
if
event
.
search
:
if
event
.
search
and
settings
.
SEND_TO_SEARCH_TOPICS
:
gps_node
=
gp_node
+
"
_{search}
"
.
format
(
search
=
event
.
search
.
name
.
lower
())
node_names
.
append
(
gps_node
)
...
...
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