Skip to content

[release/13.4] Handle process inspection race during shutdown - #17681

Closed
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.4from
backport/pr-17676-to-release/13.4
Closed

[release/13.4] Handle process inspection race during shutdown#17681
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.4from
backport/pr-17676-to-release/13.4

Conversation

@aspire-repo-bot

@aspire-repo-bot aspire-repo-bot Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Backport of #17676 to release/13.4

/cc David Negstad (@danegsta)

Customer Impact

Fixes an issue where aspire start could throw when checking for the start time of a process that had already exited instead of reporting it as not found.

Testing

Manual smoke tests.

Risk

Low, just an extra defensive exception handler.

Regression?

No

Treat Win32Exception while inspecting process metadata as a stale or non-targetable process so stop monitoring does not fail when an AppHost exits during shutdown.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 29, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17681

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17681"

@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.4 milestone May 29, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants