Skip to content

fix(analyze): cancel live scans end to end - #1407

Open
M-Hassan-Raza wants to merge 11 commits into
tw93:mainfrom
M-Hassan-Raza:perf/analyze-scan-cancellation
Open

fix(analyze): cancel live scans end to end#1407
M-Hassan-Raza wants to merge 11 commits into
tw93:mainfrom
M-Hassan-Raza:perf/analyze-scan-cancellation

Conversation

@M-Hassan-Raza

Copy link
Copy Markdown
Contributor

Live analyze scans now carry one cancellation context through recursive walks, semaphore waits, du, and Spotlight.

Cancellation also owns event and cache publication, so abandoned scans cannot emit stale completion events or commit cache state after navigation or refresh.

Tests cover blocked and nested du probes, worker shutdown, event capacity, and cache publication ordering. The full Go suite, race detector, repository checks, and local build pass.

@M-Hassan-Raza
M-Hassan-Raza requested a review from tw93 as a code owner August 9, 2026 09:13
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.

1 participant