Skip to content
Snippets Groups Projects

[hf] ignore healthcheck fails from"boy who cried wolf" channel

Merged aguestuser requested to merge hf-blacklist-false-faily-channel-from-healthchecks into main
2 files
+ 2
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
1
@@ -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