Skip to content

Conversation

@Techassi
Copy link
Member

@Techassi Techassi commented Jan 30, 2026

Part of stackabletech/issues#803.

Note

Internally, we could use an CancellationToken instead of a watch channel, but this would require us to add tokio_utils as a dependency. CancellationToken on it's own is also not sufficient, as the cancellation needs to be triggered by a signal (like SIGTERM). The SignalWatcher abstracts waiting for the signal and notifying downstream tasks all in one place.

This PR adds a new SignalWatcher which can be used to watch signals and multiply them to gracefully shutdown multiple concurrent tasks/futures.

@Techassi Techassi self-assigned this Jan 30, 2026
@Techassi Techassi moved this to Development: In Progress in Stackable Engineering Jan 30, 2026
@Techassi Techassi marked this pull request as ready for review January 30, 2026 15:35
@Techassi Techassi moved this from Development: In Progress to Development: Waiting for Review in Stackable Engineering Jan 30, 2026
@Techassi Techassi marked this pull request as draft February 2, 2026 08:37
@Techassi Techassi moved this from Development: Waiting for Review to Development: In Progress in Stackable Engineering Feb 2, 2026
@Techassi Techassi marked this pull request as ready for review February 2, 2026 10:05
@Techassi Techassi moved this from Development: In Progress to Development: Waiting for Review in Stackable Engineering Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: Waiting for Review

Development

Successfully merging this pull request may close these issues.

2 participants