[task] Poll service readiness and send Discord outage alerts

Aperta
#55 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@pusheen5000000 ci sta già lavorando.

Dal 16/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla

Direzione di ricerca

Start from the readiness probes that #54 adds, since this issue depends on them, and read AGENTS.md and the affected service's CONTRIBUTING.md first. The issue does not name the checker's location, the webhook destination, the interval or the failure threshold, so those decisions need to be settled before coding. Done means a debounced checker that sends one down and one up notification with a meaningful offline test, plus a committed runbook.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/deployment area/integration area/observability on hold type/feature
Current delivery and acceptance status

Implementation and runbook merged in PR #283, and shipped with release #319. Offline regressions verify debounce, stalled-request cancellation, failed-delivery retry and outage/recovery state; CI and make check run them.

Accepted setup: the dedicated readiness webhook is configured. The 2026-10-23 workflow run completed after reporting no configured endpoints. This supersedes the earlier no-webhook/no-run snapshot.

Deferred by the operator: external readiness polling. Keep this task in Backlog with its existing owner. READINESS_ENDPOINTS is unset, so scheduled runs currently monitor nothing. When resumed, configure reachable endpoints and record the sustained-outage, transient-failure and recovery checks below. #54 is complete. Existing discovery, source-refresh and Railway alerts have their own accepted tests; those do not establish readiness polling.

Blocked by

#54

Area

deployment, integration, observability

What needs to happen

Readiness failures do not currently notify a human. This task turns the probes from #54 into debounced outage and recovery notifications under observability epic #46.

Definition of done
  • An external scheduled checker polls the selected services' readiness endpoints at a configured interval.
  • After the chosen number of consecutive failures, the checker posts exactly one down notification with service name, status, and timestamp.
  • Recovery produces exactly one up notification; a single transient failure below the threshold produces no alert.
  • A simulated sustained outage reaches the failure threshold after N failed checks and triggers the notification in that check cycle.
  • Commit a runbook covering checker location, alert destination, testing, and silencing during planned maintenance.
  • Merge offline checker regressions and configure the dedicated readiness webhook; the endpoint-free workflow execution is recorded above.
Scope and implementation notes

Epic: #46. Native prerequisite: #54. Reuse the established PR-to-Discord webhook pattern where appropriate.

The implementation uses GitHub Actions, a dedicated operations webhook, a five-minute cadence, and a two-failure threshold by default. Configure the actual destination and reachable endpoints; the runner, interval, and threshold are configurable. The previous acceptance wording of one check interval must be interpreted consistently with the chosen N-failure debounce.

Out of scope: Railway's internal health check as the sole observer, log aggregation, and error-rate alerting.

Working convention

Part of #46. GitHub Relationships record existing prerequisites. Keep this task independently reviewable and follow AGENTS.md and the affected service's CONTRIBUTING.md for implementation, meaningful offline tests, and matching documentation. Misty issues may carry several area labels; zones apply to PRs.

Lingua principale
Python
Stelle
0
Fork
2
Merge medio
3g 3h
PR unite (30g)
31

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UTMIST/Misty

Tutte le issue di UTMIST/Misty

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.