Skip to content

Give each application component its own cancellation token #2415

Closed

Description

@josecelano

Parent: #2410 (SI-22 sub-issue 3 of 4; part of #1488).

Goal

Each top-level component registered with JobManager gets its own cancellation token through a reservation, so a later change can cancel components at different times. cancel() still cancels everything at once.

Acceptance criteria

  • AC1: every component spawned through JobManager uses only the token from its reservation.
  • AC2: shutdown behavior is unchanged: all existing tests pass, including cargo test --test lifecycle-signals.
  • AC3: the new JobManager API has unit tests.
  • AC4 (keeps sub-EPIC AC13): listeners are still registered before any producer in start_jobs_with_manager, their subscriptions exist before publication, and sufficient bus ownership is retained through their join. Dropping individual sender clones is allowed (sub-EPIC entry 27).
  • linter all exits with code 0.

Specification: docs/issues/open/2415-2410-si-22-3-per-component-cancellation-tokens/ISSUE.md (added by the spec-only PR).

Activity

  1. added a commit that references this issue on Oct 2, 2026
  2. added 12 commits that reference this issue on Oct 20, 2026
  3. 5 remaining items

  4. added a commit that references this issue on Oct 21, 2026
  5. self-assigned this
    on Oct 21, 2026
  6. added 6 commits that reference this issue on Oct 21, 2026
  7. added 5 commits that reference this issue on Oct 21, 2026
  8. added 2 commits that reference this issue on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions