Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX default process backend when multiprocessing is disabled - #1721

Merged
lesteve merged 3 commits into
joblib:mainfrom
tomMoral:FIX_default_process_backend
May 5, 2025
Merged

FIX default process backend when multiprocessing is disabled#1721
lesteve merged 3 commits into
joblib:mainfrom
tomMoral:FIX_default_process_backend

Conversation

@tomMoral

@tomMoral tomMoral commented May 5, 2025

Copy link
Copy Markdown
Contributor

Fix #1720

@codecov

codecov Bot commented May 5, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.56%. Comparing base (a02f4e4) to head (11d073e).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1721      +/-   ##
==========================================
- Coverage   95.56%   95.56%   -0.01%     
==========================================
  Files          46       46              
  Lines        7874     7884      +10     
==========================================
+ Hits         7525     7534       +9     
- Misses        349      350       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lesteve lesteve left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM thanks!

Since no-multiprocessing build is passing, I am pretty sure that it should fix it for Pyodide too.

To try to be explicit: before this PR, there were no tests that was doing Parallel(prefer="processes") when multiprocessing was disabled (e.g. Pyodide or JOBLIB_MULTIPROCESSING=0). In other words the existing tests using Parallel(prefer="processes") all used the with_multiprocessing decorator.

@lesteve lesteve changed the title FIX default process backend when no multiprocessing FIX default process backend when multiprocessing is disabled May 5, 2025
@lesteve
lesteve merged commit ed0806a into joblib:main May 5, 2025
@tomMoral
tomMoral deleted the FIX_default_process_backend branch May 5, 2025 13:31
@ogrisel

ogrisel commented May 22, 2025

Copy link
Copy Markdown
Contributor

@tomMoral shall we release 1.5.1 for this regression fix?

@lesteve

lesteve commented May 22, 2025

Copy link
Copy Markdown
Member

To be honest there is no rush, since my work-around PR in scikit-learn was merged scikit-learn/scikit-learn#31402.

Note that this doesn't affect most Pyodide users, since Pyodide still uses joblib 1.4.2 unless the user explicitly does something like await micropip.install('joblib==1.5.0').

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.

Parallel(prefer='processes') raises KeyError on Pyodide (regression in 1.5.0)

3 participants