Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
signalboost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
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
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
team-friendo
signalboost
Merge requests
!434
[hf] ignore healthcheck fails from"boy who cried wolf" channel
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[hf] ignore healthcheck fails from"boy who cried wolf" channel
hf-blacklist-false-faily-channel-from-healthchecks
into
main
Overview
1
Commits
1
Pipelines
1
Changes
2
Merged
aguestuser
requested to merge
hf-blacklist-false-faily-channel-from-healthchecks
into
main
4 years ago
Overview
1
Commits
1
Pipelines
1
Changes
2
Expand
(for now)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
5a85b435
1 commit,
4 years ago
2 files
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
app/diagnostics.js
+
2
−
1
Options
@@ -48,7 +48,8 @@ const sendHealthchecks = async () => {
// string -> Promise<{isFatal: boolean}>
const
_handleFailedHealtcheck
=
async
(
channelPhoneNumber
,
numHealtchecks
)
=>
{
// Alert maintainers if channel has failed 2 consecutive healthchecks,
// and return flag signaling fatal failure
// and return flag signaling fatal failure. (Ignore "boy who cried wolf" numbers, for now.)
if
(
channelPhoneNumber
===
process
.
env
.
SIGNALBOOST_HEALTHCHECK_BLACKLIST
)
return
if
(
failedHealthchecks
.
has
(
channelPhoneNumber
))
{
await
notifier
.
notifyMaintainers
(
`Channel
${
channelPhoneNumber
}
failed to respond to 2 consecutive healthchecks.`
,
Loading