You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deregister stopped services from the Registar #2846
SI-27 (roadmap row 24) of EPIC #1488. A follow-up of SI-21 (#2697): a service that stops in an orderly way removes its own registration from the shared Registar, so the registry lists only what is running. The full specification is in docs/issues/open/ once the specification pull request merges.
In scope: deregister the HTTP tracker, REST API, UDP tracker and health-check API bindings after an orderly drain, using Registar::deregister (available since torrust-server-lib 0.4.0); keep the registration when the stop failed, timed out or was aborted. The spec starts with a go/no-go decision, because the /health_check 503 short-circuit already hides the stale entries during a normal shutdown. Out of scope: the 503 behavior and any torrust-server-lib change. Lands before the first publish (#2583).
Closing as not planned. The go/no-go task (T1) decided no-go, and #2890 merged that decision into develop.
Stopped services stay registered in the Registar until the process exits. Deregistering them would not change anything a caller can see:
During shutdown, /health_check returns 503 "shutting down" from the readiness state and never reads the registry. The health check API stops last, so that 503 covers the whole drain.
Outside shutdown, a service that stopped still fails its probe, so the health check reports it as failing. Keeping its entry never hides a fault.
Activity
Merge #2848: docs(issues): [#1488] open the pending sub-issues SI-25 …
docs(adrs): [torrust#2846] keep Registar registrations for the proces…
docs(issues): [torrust#2846] record the SI-27 no-go and close its spec
docs(adrs): [torrust#2846] scope the registration capability to the t…
docs(issues): [torrust#2846] use the done status for the archived SI-…
docs(issues): [torrust#2846] mark the SI-27 publish gate as supersede…
docs(issues): [torrust#2846] list the registration lifetime ADR in th…
docs(adrs): [torrust#2846] say that only services with a health check…
docs(adrs): [torrust#2846] add an affected code section to the regist…
docs(pr-reviews): [torrust#2846] audit the first review of PR torrust…
docs(adrs): [torrust#2846] narrow where the job manager cancels runni…
docs(pr-reviews): [torrust#2846] audit the second review of PR torrus…
docs(adrs): [torrust#2846] say a failed registration cancels before t…
docs(pr-reviews): [torrust#2846] audit the third review of PR torrust…
docs(issues): [torrust#2846] mark the skipped SI-27 workflow checkpoi…
docs(issues): [torrust#2846] mark the SI-27 acceptance criteria and s…
docs(adrs): [torrust#2846] list the health check API server in the AD…
docs(pr-reviews): [torrust#2846] audit the Copilot review of PR torru…
docs(pr-reviews): [torrust#2846] cite the audit head of the Copilot r…
docs(pr-reviews): [torrust#2846] audit the fourth da2ce7 review of PR t…
Merge #2890: docs(adrs): [#2846] keep Registar registrations for the …
josecelano-bot commentedon Nov 17, 2026
Closing as not planned. The go/no-go task (T1) decided no-go, and #2890 merged that decision into
develop.Stopped services stay registered in the
Registaruntil the process exits. Deregistering them would not change anything a caller can see:/health_checkreturns503 "shutting down"from the readiness state and never reads the registry. The health check API stops last, so that503covers the whole drain.The decision and its reasons are in the registration lifetime ADR. The ADR also says when to revisit it: if the tracker ever restarts one service while the process keeps running. The archived spec is at
docs/issues/closed/2846-1488-si-27-deregister-stopped-services/ISSUE.md. In EPIC #1488, row 24 is marked "Not planned", and SI-27 no longer holds up #2583.