Skip to content

Prevent late cancellable runtime tasks during shutdown#928

Open
tnull wants to merge 1 commit into
lightningdevkit:mainfrom
tnull:2026-06-runtime-cancellable-shutdown
Open

Prevent late cancellable runtime tasks during shutdown#928
tnull wants to merge 1 commit into
lightningdevkit:mainfrom
tnull:2026-06-runtime-cancellable-shutdown

Conversation

@tnull

@tnull tnull commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

A cancellable task spawned during shutdown could otherwise outlive the shutdown sequence instead of being cancelled with the rest of the cancellable runtime work. Reject late spawns while shutdown is draining tasks and reopen that path when a stopped node starts again.

Co-Authored-By: HAL 9000

This finding was discovered by Project Loupe

A cancellable task spawned during shutdown could otherwise outlive the shutdown sequence instead of being cancelled with the rest of the cancellable runtime work. Reject late spawns while shutdown is draining tasks and reopen that path when a stopped node starts again.

Co-Authored-By: HAL 9000

This finding was discovered by Project Loupe
@ldk-reviews-bot

ldk-reviews-bot commented Jun 10, 2026

Copy link
Copy Markdown

I've assigned @wpaulino as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot ldk-reviews-bot requested a review from wpaulino June 10, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants