Await Bokeh dashboard shutdown - #9351
Merged
jacobtomlinson merged 3 commits intoAug 20, 2026
Merged
Conversation
jacobtomlinson-bot
force-pushed
the
issue9350-await-bokeh-stop
branch
from
August 20, 2026 09:56
bbde566 to
ae836f5
Compare
jacobtomlinson-bot
force-pushed
the
issue9350-await-bokeh-stop
branch
3 times, most recently
from
August 20, 2026 10:08
173358b to
7039a68
Compare
jacobtomlinson-bot
force-pushed
the
issue9350-await-bokeh-stop
branch
from
August 20, 2026 10:25
7039a68 to
6767da5
Compare
Contributor
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 40 files ± 0 40 suites ±0 14h 19m 38s ⏱️ + 8m 55s For more details on these failures, see this check. Results for commit 114e15f. ± Comparison against base commit b6d3347. ♻️ This comment has been updated with latest results. |
bdice
approved these changes
Aug 20, 2026
Member
|
I tested an older bokeh version with this fix locally and things work as expected. The mindeps CI should also verify this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9350.
Bokeh 3.10 added an asynchronous dashboard shutdown path.
Scheduler.closeand
Worker.closerun on the dashboard's event loop, so they must await it.Keep the public synchronous
ServerNode.stop_services()API by bridging it tothe private async helper; use Bokeh's legacy
stop()whenstop_async()isnot available.
Reproduction
The following was run with CPython 3.12.3, pytest 9.1.1, and Bokeh 3.10.0.
The selected tests already cover the synchronous in-process close and the two
async dashboard-close paths. The fourth selected test is marked slow and is
therefore skipped without
--runslow.On upstream
mainatb6d33471(before this PR), from the repository root:On this PR branch at
6767da58, with the same environment and command:pre-commit run --all-filesalso passes on the PR branch.