Skip to content

Close suspended Skyframe workers on interruption - #32913

Open
dzbarsky wants to merge 1 commit into
bazelbuild:masterfrom
dzbarsky:dzbarsky/close-suspended-skyframe-workers
Open

dzbarsky wants to merge 1 commit into
bazelbuild:masterfrom
dzbarsky:dzbarsky/close-suspended-skyframe-workers

Conversation

@dzbarsky

Copy link
Copy Markdown
Contributor

Interrupting bazel fetch while a repository worker is waiting for a Skyframe dependency can leave the worker suspended after the command returns. ParallelEvaluator now clears its compute-state cache after its evaluation tasks have stopped, so WorkerSkyKeyComputeState.close() interrupts and joins the worker before eval() propagates the interruption.

Invalidate the compute-state cache when ParallelEvaluator.eval propagates an interruption. This closes workers suspended on missing dependencies after the evaluator tasks stop, even with the default EvaluationContext.
@github-actions github-actions Bot added the awaiting-review PR is awaiting review from an assigned reviewer label Nov 24, 2026
dzbarsky added a commit to dzbarsky/bazel that referenced this pull request Nov 24, 2026
After interrupted evaluation drains its tasks, invalidate the temporary compute states. Closing each worker state interrupts and joins its worker before ParallelEvaluator returns to the caller.

Closes #315

Upstream-PR: bazelbuild#32913
@fmeum
fmeum requested a review from Wyverald November 24, 2026 07:10
@fmeum

fmeum commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

@bazel-io fork 10.0.0

@fmeum

fmeum commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

@bazel-io fork 9.4.0

@Wyverald Wyverald added copybara:import Trigger copybara to import the PR and removed awaiting-review PR is awaiting review from an assigned reviewer labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-reviewed Reviewed by a trusted community contributor copybara:import Trigger copybara to import the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants