You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add CI job with threaded parallelism on by default, to catch obvious threading bugs, and fix all bugs #35313
This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.
Given free-threaded Python, threading is going to become a lot more commonly used. Per discussion at a recent meeting, it'd be useful to have a CI runner that:
Uses free-threaded Python.
Sets backend to threading.
Sets n_jobs to -1.
The idea is to catch any blatantly non-thread-safe code. This is a preliminary to longer-term ideas like setting default backend to threading on free-threaded Python; the threaded backend tends to be faster than Loky, or will be once new joblib is released.
@ogrisel suggested opening a PR for each bug fix, so that one controversial one doesn't stall other fixes. As such, I'm going to follow this development process:
changed the title [-]Add CI job with threaded parallelism on by default, to catch obvious threading bugs[/-][+]Add CI job with threaded parallelism on by default, to catch obvious threading bugs, and fix all bugs[/+]on Nov 5, 2026
Activity
[-]Add CI job with threaded parallelism on by default, to catch obvious threading bugs[/-][+]Add CI job with threaded parallelism on by default, to catch obvious threading bugs, and fix all bugs[/+]monahgh commentedon Nov 9, 2026
Hey, I would like to work on the proposed fix if not claimed yet.
itamarst commentedon Nov 9, 2026
Sorry, I've already started work on this.