Skip to content

Update handlers.py to fix ioloop blockers(sync file operations)#1617

Merged
Carreau merged 4 commits into
jupyter-server:mainfrom
zolyfarkas-fb:zolyfarkas-fb-patch-1
May 1, 2026
Merged

Update handlers.py to fix ioloop blockers(sync file operations)#1617
Carreau merged 4 commits into
jupyter-server:mainfrom
zolyfarkas-fb:zolyfarkas-fb-patch-1

Conversation

@zolyfarkas-fb
Copy link
Copy Markdown
Contributor

Currently synchronous IO API calls are being made in a asyncio context resulting in ioloop blockage that affects server responsiveness.

this PR addresses the issue using asyncio.to_thread.

@Carreau Carreau force-pushed the zolyfarkas-fb-patch-1 branch from 3622815 to 6f0ac2e Compare April 30, 2026 12:36
@Carreau Carreau added this to the 2.18 milestone Apr 30, 2026
Copy link
Copy Markdown
Contributor

@Carreau Carreau left a comment

Choose a reason for hiding this comment

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

Rebased on main to exert the test on python 3.13 and 3.14.

Would and async version of kernelspec_model be possible/desirable (yet it's a change of API, but you looked at the subject in more depth than I)

+1 to merge once test are passing.

@Carreau
Copy link
Copy Markdown
Contributor

Carreau commented Apr 30, 2026

failure is unrelated.

#1624 should fix it.

zolyfarkas-fb and others added 4 commits May 1, 2026 07:30
Currently kernel spec api implementation uses sync io API that blocks the server's ioloop resulting in suboptimal responsiveness.
…missing.

Update handlers.py implementation to log when spec and resources are missing, to maintain original behavior.
Fix incorrect check for resource field
@Carreau Carreau force-pushed the zolyfarkas-fb-patch-1 branch from 6f0ac2e to 73b3c27 Compare May 1, 2026 05:30
@Carreau
Copy link
Copy Markdown
Contributor

Carreau commented May 1, 2026

rebasing once more to see if the issue goes away, otherwise merge.

@Carreau Carreau merged commit ae67745 into jupyter-server:main May 1, 2026
77 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants