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
Give each application component its own cancellation token #2415
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
Merge #2421: docs(issues): add specs for SI-22 shutdown event drainin…
docs(issues): [#2410] refresh stale SI-22 spec text before #2414
Merge #2569: docs(issues): close the #2413 delivery gates and refresh…
Merge #2578: fix(events): [#2414] drain listener queues on shutdown
fix(bootstrap): [torrust#2415] refuse to wrap the component id counte…
refactor(bootstrap): [torrust#2415] assert that a spawned reservation…
docs(pr-reviews): [torrust#2415] add PR torrust#2591 Copilot review a…
docs(issues): [torrust#2415] record PR torrust#2591 and its first Cop…
docs(pr-reviews): [torrust#2415] record the resolution of the PR torr…
docs(issues): [#2415] move misplaced SI-22 progress-log entry into th…
refactor(bootstrap): [#2415] add JobManager reservations that issue e…
docs(issues): [#2415] record the T6a design review and its evidence
refactor(bootstrap): [#2415] give every application component its own…
5 remaining items
docs(issues): [#2415] record the maintainer's push and acceptance-rev…
chore(issues): archive closed issue #2415 spec to docs/issues/closed
Merge #2598: chore(issues): archive closed issue #2415 spec to docs/i…
docs(issues): [torrust#2603] correct the clauses in the per-clause mu…
docs(issues): draft the write-unit-test skill rules from the #2415 re…
Merge #2604: docs(issues): add issue specification for #2603
Merge torrust#2612: docs(skills): [torrust#2603] teach write-unit-tes…
Merge torrust#2591: refactor(bootstrap): [torrust#2415] give each app…
docs(skills): [torrust#2603] ask for a mutation per clause of a rule …
docs(skills): [torrust#2603] ask for a record when a refactor removes…
docs(issues): [torrust#2603] record the walk-throughs of the two skil…
docs(issues): [torrust#2603] record the maintainer's push and accepta…
Merge #2632: chore(issues): archive closed issue #2416 spec to docs/i…
Merge #2633: chore(issues): [#2410] close sub-EPIC SI-22 and archive …