Skip to content

Remove legacy shutdown API and library OS signals #2801

Closed

Description

@josecelano-bot

SI-19 (roadmap row 19) of EPIC #1488. Breaking removal of what SI-18 (#2751) deprecated: the Halted-based shutdown API and library-level OS-signal subscriptions. After this task, server shutdown uses injected CancellationToken propagation, and only executable entry points subscribe to SIGINT or SIGTERM. The Started oneshot startup notification stays. The full specification, with the start-gate evidence and the plan, is in docs/issues/open/ once the specification pull request merges.

The start gate is met except one item: torrust-server-lib 0.6.0, which removes the symbols deprecated in 0.5.0, must be published first. Its removal is tracked in torrust/torrust-server-lib#5 (PR torrust/torrust-server-lib/pull/6); the maintainer publishes it. The maintainer approved the end of the 0.5.x window on 2026-11-10.

In scope: bump torrust-server-lib to 0.6.0; remove the legacy start/stop, halt_task and rx_halt entry points of the HTTP, REST API, health-check API and UDP servers, axum-server's graceful_shutdown, the legacy UDP launcher adapter, and the root HaltSignal and NestedServerTask; remove legacy-only tests and docs; prove SIGINT and SIGTERM still produce one orderly shutdown at the executable boundary. Out of scope: supervisor consolidation (separate follow-up), any shutdown behavior change, and the Started API.

Activity

  1. added 4 commits that reference this issue on Nov 10, 2026
  2. added 2 commits that reference this issue on Nov 10, 2026
  3. added 11 commits that reference this issue on Nov 10, 2026
  4. added 5 commits that reference this issue on Nov 11, 2026
  5. added a commit that references this issue on Nov 11, 2026
  6. added 3 commits that reference this issue on Nov 11, 2026
  7. added 2 commits that reference this issue on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions