Skip to content

Do not schedule any new tasks in TaskScheduler if it has been shut down #2153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 13, 2025

This is what shutDown() is documented to do. I also remember having this check before, it might have gotten lost during a rebase when I was working on #2081.

I noticed this while investigating #2152: In this case buildTarget/prepare was cancelled because the SourceKit-LSP server was shut down but indexing of a file was still started after the shutdown now that preparation had finished (because it was cancelled).

…down

This is what `shutDown()` is documented to do. I also remember having this check before, it might have gotten lost during a rebase when I was working on swiftlang#2081.

I noticed this while investigating swiftlang#2152: In this case `buildTarget/prepare` was cancelled because the SourceKit-LSP server was shut down but indexing of a file was still started after the shutdown now that preparation had finished (because it was cancelled).
@ahoppen ahoppen requested review from bnbarham and hamishknight May 13, 2025 15:30
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2025

@swift-ci Please test

@ahoppen ahoppen merged commit be5ae8c into swiftlang:main May 14, 2025
3 checks passed
@ahoppen ahoppen deleted the check-shutdown branch May 14, 2025 17:12
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.

2 participants