Repository navigation
fix(jobs): report the uptime heartbeat only after repeated failed pings - #219
Merged
Merged
Conversation
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Nov 10, 2026 11:30p.m. | Review ↗ | |
| Go | Nov 10, 2026 11:30p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
A single failed ping (a slow response from the monitoring service, a network blip) failed the job, and the job error handler reported each one to Sentry. The heartbeat monitor already alerts when pings stop arriving, so those reports weren't actionable. A failed ping is now logged, and the job fails, with how many pings in a row have failed, from the third failure in a row.
ndbroadbent
force-pushed
the
nathan/uptime-heartbeat-repeated-failures
branch
from
November 10, 2026 23:30
38783e4 to
bf39c5c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A single failed uptime heartbeat ping (a slow answer from the monitoring service, a network blip) failed the
heartbeat:uptimejob, and the job error handler reported each one to Sentry. The heartbeat monitor already alerts when pings stop arriving, so those reports weren't actionable.uptime.FailuresBeforeReport), with the ping's error and how many pings in a row have failed. That covers a ping that keeps failing for a reason the monitor can't see (a wrong URL, a revoked key).internal/gateway/AGENTS.mdsay so.Testing
go test ./internal/gateway/jobs/uptime/ ./internal/gateway/jobs/: the two new tests (failures reported from the third in a row, and the count starting again after a successful ping) fail onmain's worker.golangci-lint run ./internal/gateway/jobs/...: 0 issues.