Skip to content

Fix handling of maxtasksperchild in ParallelExt for better compatibil… #1939

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blogbin
Copy link

@blogbin blogbin commented May 27, 2025

Fix: Improve ParallelExt Compatibility with joblib Backend

Description

This PR fixes the handling of maxtasksperchild in ParallelExt, ensuring better compatibility when using the joblib backend. The update ensures that task management behaves consistently under different multiprocessing settings.

Motivation and Context

Previously, maxtasksperchild was either not respected or caused unexpected behavior under the joblib backend. This change ensures that task recycling and memory/resource constraints are correctly handled when running long or parallel workflows.

How Has This Been Tested?

  • Ran: pytest qlib/tests/test_all_pipeline.py
  • Verified on custom joblib-based scripts for parallel workflows

Please confirm the above after testing.

Screenshots of Test Results (if appropriate)

(You can attach console output or screenshots here if needed)

Types of Changes

  • Bug fix
  • New feature
  • Documentation update

@github-actions github-actions bot added the waiting for triage Cannot auto-triage, wait for triage. label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for triage Cannot auto-triage, wait for triage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant